7#ifndef PXR_USD_PCP_EXPRESSION_VARIABLES_DEPENDENCY_DATA_H
8#define PXR_USD_PCP_EXPRESSION_VARIABLES_DEPENDENCY_DATA_H
11#include "pxr/usd/pcp/api.h"
13#include "pxr/base/tf/functionRef.h"
16#include <unordered_set>
19PXR_NAMESPACE_OPEN_SCOPE
57 const PcpLayerStackPtr& layerStack,
58 std::unordered_set<std::string>&& exprVarDependencies);
67 template <
class Callback>
71 _ForEachDependency(fn);
78 const std::unordered_set<std::string>*
83 const PcpLayerStackPtr&,
const std::unordered_set<std::string>&)>;
89 const _Data* _GetData()
const;
90 _Data& _GetWritableData();
92 std::unique_ptr<_Data> _data;
95PXR_NAMESPACE_CLOSE_SCOPE
Captures the expression variables used by an associated prim index during composition.
void ForEachDependency(const Callback &callback) const
Runs the given callback on all of the dependencies in this object.
PCP_API bool IsEmpty() const
Returns true if any dependencies have been recorded, false otherwise.
PCP_API const std::unordered_set< std::string > * GetDependenciesForLayerStack(const PcpLayerStackPtr &layerStack) const
Returns the expression variable dependencies associated with layerStack.
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.
Represents a stack of layers that contribute opinions to composition.
This class provides a non-owning reference to a type-erased callable object with a specified signatur...
Standard pointer typedefs.
#define TF_DECLARE_WEAK_PTRS(type)
Define standard weak pointer types.