24#ifndef PXR_USD_PCP_EXPRESSION_VARIABLES_SOURCE_H
25#define PXR_USD_PCP_EXPRESSION_VARIABLES_SOURCE_H
28#include "pxr/usd/pcp/api.h"
32PXR_NAMESPACE_OPEN_SCOPE
82 return !
static_cast<bool>(_identifier);
91 return _identifier ? _identifier.get() :
nullptr;
117 std::shared_ptr<PcpLayerStackIdentifier> _identifier;
120template <
typename HashState>
127PXR_NAMESPACE_CLOSE_SCOPE
PcpCache is the context required to make requests of the Pcp composition algorithm and cache the resu...
Represents the layer stack associated with a set of expression variables.
const PcpLayerStackIdentifier * GetLayerStackIdentifier() const
Return the identifier of the layer stack represented by this object if it is not the root layer stack...
PCP_API size_t GetHash() const
Return hash value for this object.
PCP_API const PcpLayerStackIdentifier & ResolveLayerStackIdentifier(const PcpCache &cache) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
PCP_API PcpExpressionVariablesSource(const PcpLayerStackIdentifier &layerStackIdentifier, const PcpLayerStackIdentifier &rootLayerStackIdentifier)
Create a PcpExpressionVariableSource representing the layer stack identified by layerStackIdentifier.
PCP_API const PcpLayerStackIdentifier & ResolveLayerStackIdentifier(const PcpLayerStackIdentifier &rootLayerStackIdentifier) const
Convenience function to return the identifier of the layer stack represented by this object.
PCP_API PcpExpressionVariablesSource()
Create a PcpExpressionVariableSource representing the root layer stack of a prim index.
bool IsRootLayerStack() const
Return true if this object represents a prim index's root layer stack, false otherwise.
Arguments used to identify a layer stack.