7 #ifndef PXR_USD_SDF_PROXY_POLICIES_H
8 #define PXR_USD_SDF_PROXY_POLICIES_H
36 const std::vector<value_type>&
x)
56 const std::vector<value_type>&
x)
76 return _Canonicalize(x, _GetAnchor());
79 std::vector<value_type>
Canonicalize(
const std::vector<value_type>&
x)
const
85 const SdfPath anchor = _GetAnchor();
87 std::vector<value_type>
result =
x;
89 *it = _Canonicalize(*it, anchor);
99 return _owner ? _owner->GetPath().GetPrimPath() :
109 SdfSpecHandle _owner;
116 TF_AXIOM(
false &&
"Failed VtValue::Get<SdfPathKeyPolicy> not allowed");
135 const std::vector<value_type>& x)
145 TF_AXIOM(
false &&
"Failed VtValue::Get<SdfPayloadTypePolicy> not allowed");
164 const std::vector<value_type>& x)
174 TF_AXIOM(
false &&
"Failed VtValue::Get<SdfReferenceTypePolicy> not allowed");
193 const std::vector<value_type>& x)
206 typedef std::map<SdfPath, SdfPath>
Type;
237 return x->GetSpecType() == _type;
268 #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
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)
GLint GLint GLsizei GLint GLenum GLenum type
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()