![]() |
|
Class that holds data that is cached per-stage. More...
#include <stageData.h>
Public Types | |
| using | ChangedPathSet = tbb::concurrent_unordered_set< SdfPath, TfHash > |
| A concurent set of paths, used to indicate the set of targets for which incoming connections have changed. | |
Public Member Functions | |
| ESFUSD_API void | UpdateForChangedAttributeConnections (const SdfPath &attrPath, ChangedPathSet *incomingConnectionsChanged) |
Updates attribute connection caches for connections owned by the attribute at attrPath. | |
| ESFUSD_API void | UpdateForResync (const SdfPath &resyncedPath, ChangedPathSet *incomingConnectionsChanged) |
Updates attribute connection caches for connections owned by attribute at or under resyncedPath. | |
Static Public Member Functions | |
| static ESFUSD_API std::shared_ptr< EsfUsdStageData > | RegisterStage (const UsdStageConstPtr &stage) |
Registers stage as a stage for which cached data should be held, returning a strong reference the client must hold until the cached data is no longer needed. | |
| static ESFUSD_API EsfUsdStageData & | GetStageData (const UsdStageConstPtr &stage) |
Get the cached stage data for stage. | |
| static ESFUSD_API const SdfPathVector & | GetOutgoingConnections (const UsdStageConstPtr &stage, const SdfPath &attrPath) |
Returns the paths of all objects that are targets of connections owned by the attribute at attrPath. | |
| static ESFUSD_API SdfPathVector | GetIncomingConnections (const UsdStageConstPtr &stage, const SdfPath &targetPath) |
Returns the paths of all attributes that own connections that target the object at targetPath. | |
Class that holds data that is cached per-stage.
Definition at line 51 of file stageData.h.
| using ChangedPathSet = tbb::concurrent_unordered_set<SdfPath, TfHash> |
A concurent set of paths, used to indicate the set of targets for which incoming connections have changed.
Definition at line 83 of file stageData.h.
|
static |
Returns the paths of all attributes that own connections that target the object at targetPath.
|
static |
Returns the paths of all objects that are targets of connections owned by the attribute at attrPath.
|
static |
Get the cached stage data for stage.
stage by calling RegisterStage and must still be holding the strong reference to the stage data while calling this method and using the returned reference.
|
static |
Registers stage as a stage for which cached data should be held, returning a strong reference the client must hold until the cached data is no longer needed.
| ESFUSD_API void UpdateForChangedAttributeConnections | ( | const SdfPath & | attrPath, |
| ChangedPathSet * | incomingConnectionsChanged | ||
| ) |
Updates attribute connection caches for connections owned by the attribute at attrPath.
Populates incomingConnectionsChanged with the paths of objects whose incoming connection paths have changed.
| ESFUSD_API void UpdateForResync | ( | const SdfPath & | resyncedPath, |
| ChangedPathSet * | incomingConnectionsChanged | ||
| ) |
Updates attribute connection caches for connections owned by attribute at or under resyncedPath.