HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Vt_TransformImpl Class Reference

#include <valueTransform.h>

Friends

template<class Xf >
bool VtValueCanTransform (VtValueRef obj, Xf const &xfObj)
 
template<class Xf >
VtValue VtValueTryTransform (VtValueRef obj, Xf const &xfObj)
 

Detailed Description

Definition at line 22 of file valueTransform.h.

Friends And Related Function Documentation

template<class Xf >
bool VtValueCanTransform ( VtValueRef  obj,
Xf const &  xfObj 
)
friend

Return true if obj is not empty, views an object that supports value transforms, and has value transform support registered for transforms of type Xf. Note that the type Xf does not have specific requirements, but typically represents a possibly "polymorphic" transform that can apply to many types. For example, "Transpose" may apply to many matrix types. Or "Normalize" to many vector types.

Definition at line 51 of file valueTransform.h.

template<class Xf >
VtValue VtValueTryTransform ( VtValueRef  obj,
Xf const &  xfObj 
)
friend

Attempt to transform obj by xfObj and return the result. If no transformation is done, return an empty value. Strongly typed transforms are preferred to type-erased transforms.

Definition at line 64 of file valueTransform.h.


The documentation for this class was generated from the following file: