HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stageCacheContext.h File Reference
#include "pxr/pxr.h"
#include "pxr/usd/usd/api.h"
#include "pxr/base/tf/stacked.h"
#include <vector>
+ Include dependency graph for stageCacheContext.h:

Go to the source code of this file.

Classes

struct  Usd_NonPopulatingStageCacheWrapper
 

Enumerations

enum  UsdStageCacheContextBlockType { UsdBlockStageCaches, UsdBlockStageCachePopulation, Usd_NoBlock }
 

Functions

template<class StageCache >
Usd_NonPopulatingStageCacheWrapper UsdUseButDoNotPopulateCache (StageCache &cache)
 
 TF_DEFINE_STACKED (UsdStageCacheContext, true, USD_API)
 

Enumeration Type Documentation

Enumerator
UsdBlockStageCaches 

Indicate that a UsdStageCacheContext should ignore all currently bound UsdStageCacheContexts, preventing reading from or writing to their UsdStageCaches. See UsdStageCache for more details and example use.

UsdBlockStageCachePopulation 

Indicate that a UsdStageCacheContext should ignore all currently bound writable UsdStageCacheContexts, writing to their UsdStageCaches. See UsdStageCache for more details and example use.

Usd_NoBlock 

Definition at line 59 of file stageCacheContext.h.

Function Documentation

TF_DEFINE_STACKED ( UsdStageCacheContext  ,
true  ,
USD_API   
)

Bind a cache for calls to UsdStage::Open() to read from and write to.

Bind a cache for calls to UsdStage::Open() to read from.

See Also
UsdUseButDoNotPopulateCache()

Disable cache use completely (with UsdBlockStageCaches) or only for writing (with UsdBlockStageCacheWrites).

Definition at line 121 of file stageCacheContext.h.

template<class StageCache >
Usd_NonPopulatingStageCacheWrapper UsdUseButDoNotPopulateCache ( StageCache &  cache)

Indicate that a UsdStageCacheContext should be bound in a read-only fashion. Calls to UsdStage::Open() will attempt to find stages in cache when a UsdStageCacheContext is present on the stack. See UsdStageCacheContext for more details and example use.

Definition at line 55 of file stageCacheContext.h.