24 #ifndef PXR_USD_PCP_EXPRESSION_VARIABLES_H
25 #define PXR_USD_PCP_EXPRESSION_VARIABLES_H
35 #include <unordered_map>
77 : _source(std::move(
source))
78 , _expressionVariables(std::move(expressionVariables))
85 return (
this == &rhs) ||
86 (std::tie(_source, _expressionVariables) ==
87 std::tie(rhs._source, rhs._expressionVariables));
92 return !(*
this == rhs);
102 {
return _expressionVariables; }
106 { _expressionVariables = variables; }
138 using _IdentifierToExpressionVarsMap = std::unordered_map<
140 _IdentifierToExpressionVarsMap _identifierToExpressionVars;
PcpExpressionVariables(const PcpExpressionVariablesSource &source, const VtDictionary &expressionVariables)
void SetVariables(const VtDictionary &variables)
Set the composed expression variables to variables.
const VtDictionary & GetVariables() const
Returns the composed expression variables dictionary.
const PcpExpressionVariablesSource & GetSource() const
Return the source of the composed expression variables.
bool operator!=(const PcpExpressionVariables &rhs) const
PCP_API PcpExpressionVariableCachingComposer(const PcpLayerStackIdentifier &rootLayerStackIdentifier)
static PCP_API PcpExpressionVariables Compute(const PcpLayerStackIdentifier &sourceLayerStackId, const PcpLayerStackIdentifier &rootLayerStackId, const PcpExpressionVariables *overrideExpressionVars=nullptr)
GLsizei GLsizei GLchar * source
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
PcpExpressionVariables()=default
#define PXR_NAMESPACE_CLOSE_SCOPE
PCP_API const PcpExpressionVariables & ComputeExpressionVariables(const PcpLayerStackIdentifier &id)
bool operator==(const PcpExpressionVariables &rhs) const
PcpExpressionVariables(PcpExpressionVariablesSource &&source, VtDictionary &&expressionVariables)