Loading...
Searching...
No Matches
SdfChangeList::Entry Struct Reference

Entry of changes at a single path in namespace. More...

#include <changeList.h>

Public Types

typedef std::pair< VtValue, VtValueInfoChange
 
typedef TfSmallVector< std::pair< TfToken, InfoChange >, 3 > InfoChangeVec
 
typedef std::pair< std::string, SubLayerChangeType > SubLayerChange
 

Public Member Functions

InfoChangeVec::const_iterator FindInfoChange (TfToken const &key) const
 Return the iterator in infoChanged whose first element is key, or infoChanged.end() if there is no such element.
 
bool HasInfoChange (TfToken const &key) const
 Return true if this entry has an info change for key, false otherwise.
 

Public Attributes

InfoChangeVec infoChanged
 
std::vector< SubLayerChange > subLayerChanges
 
SdfPath oldPath
 
std::string oldIdentifier
 
_Flags flags
 

Detailed Description

Entry of changes at a single path in namespace.

If the path is SdfPath::AbsoluteRootPath(), that indicates a change to the root of namespace (that is, a layer or stage).

Note: Our language for invalidation used to be more precise about items added, removed, or reordered. It might seem that this would afford more opportunities for efficient updates, but in practice it does not. Because our derived data typically must recompose or reinstantiate based on the underlying data, the particular delta might be ignored, overridden, or invalid. It is simpler to treat all changes identically, and focus on making the common base case fast, rather than have complicated differential update logic. It also vastly simplifies the language of invalidation.

Definition at line 117 of file changeList.h.

Member Typedef Documentation

◆ InfoChange

typedef std::pair<VtValue, VtValue> InfoChange

Definition at line 119 of file changeList.h.

◆ InfoChangeVec

typedef TfSmallVector<std::pair<TfToken, InfoChange>, 3> InfoChangeVec

Definition at line 122 of file changeList.h.

◆ SubLayerChange

typedef std::pair<std::string, SubLayerChangeType> SubLayerChange

Definition at line 145 of file changeList.h.

Member Function Documentation

◆ FindInfoChange()

InfoChangeVec::const_iterator FindInfoChange ( TfToken const &  key) const
inline

Return the iterator in infoChanged whose first element is key, or infoChanged.end() if there is no such element.

Definition at line 128 of file changeList.h.

◆ HasInfoChange()

bool HasInfoChange ( TfToken const &  key) const
inline

Return true if this entry has an info change for key, false otherwise.

Definition at line 141 of file changeList.h.

Member Data Documentation

◆ flags

_Flags flags

Definition at line 199 of file changeList.h.

◆ infoChanged

InfoChangeVec infoChanged

Definition at line 123 of file changeList.h.

◆ oldIdentifier

std::string oldIdentifier

Definition at line 152 of file changeList.h.

◆ oldPath

SdfPath oldPath

Definition at line 149 of file changeList.h.

◆ subLayerChanges

std::vector<SubLayerChange> subLayerChanges

Definition at line 146 of file changeList.h.


The documentation for this struct was generated from the following file: