Loading...
Searching...
No Matches
SdfAbstractDataTypedValue< T > Class Template Reference

The fully-typed container for a field value in an SdfAbstractData. More...

#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
virtual bool StoreValue (const VtValue &value)=0
 
virtual bool StoreValue (VtValue &&value)=0
 
template<class T >
bool StoreValue (const T &v)
 
bool StoreValue (const SdfValueBlock &block)
 

Additional Inherited Members

- Public Attributes inherited from SdfAbstractDataValue
void * value
 
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

◆ SdfAbstractDataTypedValue()

SdfAbstractDataTypedValue ( T *  value)
inline

Definition at line 469 of file abstractData.h.

Member Function Documentation

◆ StoreValue() [1/2]

virtual bool StoreValue ( const VtValue v)
inlineoverridevirtual

Implements SdfAbstractDataValue.

Definition at line 473 of file abstractData.h.

◆ StoreValue() [2/2]

virtual bool 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: