24#ifndef PXR_USD_PCP_EXPRESSION_VARIABLES_DEPENDENCY_DATA_H
25#define PXR_USD_PCP_EXPRESSION_VARIABLES_DEPENDENCY_DATA_H
28#include "pxr/usd/pcp/api.h"
30#include "pxr/base/tf/functionRef.h"
33#include <unordered_set>
36PXR_NAMESPACE_OPEN_SCOPE
74 const PcpLayerStackPtr& layerStack,
75 std::unordered_set<std::string>&& exprVarDependencies);
84 template <
class Callback>
88 _ForEachDependency(fn);
95 const std::unordered_set<std::string>*
100 const PcpLayerStackPtr&,
const std::unordered_set<std::string>&)>;
106 const _Data* _GetData()
const;
107 _Data& _GetWritableData();
109 std::unique_ptr<_Data> _data;
112PXR_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.