24 #ifndef PXR_USD_SDF_PROXY_POLICIES_H
25 #define PXR_USD_SDF_PROXY_POLICIES_H
53 const std::vector<value_type>&
x)
73 const std::vector<value_type>&
x)
93 return _Canonicalize(x, _GetAnchor());
96 std::vector<value_type>
Canonicalize(
const std::vector<value_type>&
x)
const
102 const SdfPath anchor = _GetAnchor();
104 std::vector<value_type>
result =
x;
106 *it = _Canonicalize(*it, anchor);
116 return _owner ? _owner->GetPath().GetPrimPath() :
126 SdfSpecHandle _owner;
133 TF_AXIOM(
false &&
"Failed VtValue::Get<SdfPathKeyPolicy> not allowed");
152 const std::vector<value_type>& x)
162 TF_AXIOM(
false &&
"Failed VtValue::Get<SdfPayloadTypePolicy> not allowed");
181 const std::vector<value_type>& x)
191 TF_AXIOM(
false &&
"Failed VtValue::Get<SdfReferenceTypePolicy> not allowed");
210 const std::vector<value_type>& x)
223 typedef std::map<SdfPath, SdfPath>
Type;
254 return x->GetSpecType() == _type;
285 #endif // PXR_USD_SDF_PROXY_POLICIES_H
std::map< SdfPath, SdfPath > Type
static SDF_API const SdfPath & AbsoluteRootPath()
static const value_type & Canonicalize(const value_type &x)
value_type Canonicalize(const value_type &x) const
GLsizei const GLchar *const * string
bool operator()(const SdfHandle< T > &x) const
bool IsEmpty() const noexcept
Returns true if this is the empty path (SdfPath::EmptyPath()).
static const value_type & Canonicalize(const value_type &x)
**But if you need a result
std::vector< value_type > Canonicalize(const std::vector< value_type > &x) const
static const std::vector< value_type > & Canonicalize(const std::vector< value_type > &x)
static const value_type & Canonicalize(const value_type &x)
static const std::vector< value_type > & Canonicalize(const std::vector< value_type > &x)
static Vt_DefaultValueHolder Invoke()
SDF_API SdfAttributeViewPredicate()
static Vt_DefaultValueHolder Invoke()
Type::value_type value_type
static const value_type & Canonicalize(const value_type &x)
static SDF_API key_type CanonicalizeKey(const SdfSpecHandle &v, const key_type &x)
SdfPathKeyPolicy(const SdfSpecHandle &owner)
static SDF_API mapped_type CanonicalizeValue(const SdfSpecHandle &v, const mapped_type &x)
static SDF_API Type CanonicalizeType(const SdfSpecHandle &v, const Type &x)
static const std::vector< value_type > & Canonicalize(const std::vector< value_type > &x)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
static const std::vector< value_type > & Canonicalize(const std::vector< value_type > &x)
SDF_API SdfRelationshipViewPredicate()
static Vt_DefaultValueHolder Create()
#define PXR_NAMESPACE_CLOSE_SCOPE
static SDF_API value_type CanonicalizePair(const SdfSpecHandle &v, const value_type &x)
SdfGenericSpecViewPredicate(SdfSpecType type)
static const std::vector< value_type > & Canonicalize(const std::vector< value_type > &x)
#define TF_FOR_ALL(iter, c)
Type::mapped_type mapped_type
static const value_type & Canonicalize(const value_type &x)
static Vt_DefaultValueHolder Invoke()