HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SdfAbstractDataTypedValue< T > Class Template Reference

#include <abstractData.h>

+ Inheritance diagram for SdfAbstractDataTypedValue< T >:

Public Member Functions

 SdfAbstractDataTypedValue (T *value)
 
virtual bool StoreValue (const VtValue &v) override
 
virtual bool StoreValue (VtValue &&v) override
 
- Public Member Functions inherited from SdfAbstractDataValue
template<class T >
bool StoreValue (const T &v)
 
bool StoreValue (const SdfValueBlock &block)
 

Additional Inherited Members

- Public Attributes inherited from SdfAbstractDataValue
voidvalue
 
const std::type_info & valueType
 
bool isValueBlock
 
bool typeMismatch
 
- Protected Member Functions inherited from SdfAbstractDataValue
 SdfAbstractDataValue (void *value_, const std::type_info &valueType_)
 

Detailed Description

template<class T>
class SdfAbstractDataTypedValue< T >

The fully-typed container for a field value in an SdfAbstractData. An SdfAbstractDataTypedValue allows a consumer to pass a pointer to an object through the virtual SdfAbstractData interface along with information about that object's type. That information may allow implementations of SdfAbstractData to populate the contained object in a more efficient way, avoiding unnecessary boxing/unboxing of data.

SdfAbstractDataTypedValue objects are intended to be transient; they are solely used to get pointer information into and out of an SdfAbstractData container.

Definition at line 466 of file abstractData.h.

Constructor & Destructor Documentation

template<class T>
SdfAbstractDataTypedValue< T >::SdfAbstractDataTypedValue ( T value)
inline

Definition at line 469 of file abstractData.h.

Member Function Documentation

template<class T>
virtual bool SdfAbstractDataTypedValue< T >::StoreValue ( const VtValue v)
inlineoverridevirtual

Implements SdfAbstractDataValue.

Definition at line 473 of file abstractData.h.

template<class T>
virtual bool SdfAbstractDataTypedValue< T >::StoreValue ( VtValue &&  v)
inlineoverridevirtual

Implements SdfAbstractDataValue.

Definition at line 493 of file abstractData.h.


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