This document is for a version of USD that is under development. See this page for the current release.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PcpExpressionVariablesDependencyData Class Reference

Captures the expression variables used by an associated prim index during composition. More...

#include <expressionVariablesDependencyData.h>

Public Member Functions

PCP_API PcpExpressionVariablesDependencyData (PcpExpressionVariablesDependencyData &&)
 
PCP_API PcpExpressionVariablesDependencyDataoperator= (PcpExpressionVariablesDependencyData &&)
 
PCP_API bool IsEmpty () const
 Returns true if any dependencies have been recorded, false otherwise.
 
PCP_API void AppendDependencyData (PcpExpressionVariablesDependencyData &&data)
 Moves dependencies in data and appends it to the dependencies in this object.
 
PCP_API void AddDependencies (const PcpLayerStackPtr &layerStack, std::unordered_set< std::string > &&exprVarDependencies)
 Adds dependencies on the expression variables in exprVarDependencies from layerStack.
 
template<class Callback >
void ForEachDependency (const Callback &callback) const
 Runs the given callback on all of the dependencies in this object.
 
PCP_API const std::unordered_set< std::string > * GetDependenciesForLayerStack (const PcpLayerStackPtr &layerStack) const
 Returns the expression variable dependencies associated with layerStack.
 

Detailed Description

Captures the expression variables used by an associated prim index during composition.

Definition at line 27 of file expressionVariablesDependencyData.h.

Member Function Documentation

◆ AddDependencies()

PCP_API void AddDependencies ( const PcpLayerStackPtr &  layerStack,
std::unordered_set< std::string > &&  exprVarDependencies 
)

Adds dependencies on the expression variables in exprVarDependencies from layerStack.

◆ AppendDependencyData()

PCP_API void AppendDependencyData ( PcpExpressionVariablesDependencyData &&  data)

Moves dependencies in data and appends it to the dependencies in this object.

◆ ForEachDependency()

void ForEachDependency ( const Callback &  callback) const
inline

Runs the given callback on all of the dependencies in this object.

callback must have the signature:

void(const PcpLayerStack&, const std::unordered_set<std::string>&)

The first argument is the layer stack associated with the expression variables in the second argument.

Definition at line 68 of file expressionVariablesDependencyData.h.

◆ GetDependenciesForLayerStack()

PCP_API const std::unordered_set< std::string > * GetDependenciesForLayerStack ( const PcpLayerStackPtr &  layerStack) const

Returns the expression variable dependencies associated with layerStack.

If no such dependencies have been added, returns nullptr.

◆ IsEmpty()

PCP_API bool IsEmpty ( ) const

Returns true if any dependencies have been recorded, false otherwise.


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