|
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 PcpExpressionVariablesDependencyData & | operator= (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 . | |
Captures the expression variables used by an associated prim index during composition.
Definition at line 27 of file expressionVariablesDependencyData.h.
PCP_API void AddDependencies | ( | const PcpLayerStackPtr & | layerStack, |
std::unordered_set< std::string > && | exprVarDependencies | ||
) |
Adds dependencies on the expression variables in exprVarDependencies
from layerStack
.
PCP_API void AppendDependencyData | ( | PcpExpressionVariablesDependencyData && | data | ) |
Moves dependencies in data
and appends it to the dependencies in this object.
|
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.
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.
PCP_API bool IsEmpty | ( | ) | const |
Returns true if any dependencies have been recorded, false otherwise.