HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PcpExpressionVariablesDependencyData Class Reference

#include <expressionVariablesDependencyData.h>

Public Member Functions

PCP_API PcpExpressionVariablesDependencyData ()
 
PCP_API PcpExpressionVariablesDependencyData (PcpExpressionVariablesDependencyData &&)
 
PCP_API ~PcpExpressionVariablesDependencyData ()
 
PCP_API
PcpExpressionVariablesDependencyData
operator= (PcpExpressionVariablesDependencyData &&)
 
PCP_API bool IsEmpty () const
 Returns true if any dependencies have been recorded, false otherwise. More...
 
PCP_API void AppendDependencyData (PcpExpressionVariablesDependencyData &&data)
 
PCP_API void AddDependencies (const PcpLayerStackPtr &layerStack, std::unordered_set< std::string > &&exprVarDependencies)
 
template<class Callback >
void ForEachDependency (const Callback &callback) const
 
PCP_API const
std::unordered_set
< std::string > * 
GetDependenciesForLayerStack (const PcpLayerStackPtr &layerStack) const
 

Detailed Description

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

Definition at line 44 of file expressionVariablesDependencyData.h.

Constructor & Destructor Documentation

PCP_API PcpExpressionVariablesDependencyData::PcpExpressionVariablesDependencyData ( )
PCP_API PcpExpressionVariablesDependencyData::PcpExpressionVariablesDependencyData ( PcpExpressionVariablesDependencyData &&  )
PCP_API PcpExpressionVariablesDependencyData::~PcpExpressionVariablesDependencyData ( )

Member Function Documentation

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

Adds dependencies on the expression variables in exprVarDependencies from layerStack.

PCP_API void PcpExpressionVariablesDependencyData::AppendDependencyData ( PcpExpressionVariablesDependencyData &&  data)

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

template<class Callback >
void PcpExpressionVariablesDependencyData::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 85 of file expressionVariablesDependencyData.h.

PCP_API const std::unordered_set<std::string>* PcpExpressionVariablesDependencyData::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 PcpExpressionVariablesDependencyData::IsEmpty ( ) const

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

PCP_API PcpExpressionVariablesDependencyData& PcpExpressionVariablesDependencyData::operator= ( PcpExpressionVariablesDependencyData &&  )

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