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

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

#include <abstractData.h>

+ Inheritance diagram for SdfAbstractDataConstTypedValue< T >:

Public Member Functions

 SdfAbstractDataConstTypedValue (const T *value)
 
virtual bool GetValue (VtValue *v) const
 
virtual bool IsEqual (const VtValue &v) const
 
- Public Member Functions inherited from SdfAbstractDataConstValue
virtual bool GetValue (VtValue *value) const =0
 
template<class T >
bool GetValue (T *v) const
 
virtual bool IsEqual (const VtValue &value) const =0
 

Additional Inherited Members

- Public Attributes inherited from SdfAbstractDataConstValue
const void * value
 
const std::type_info & valueType
 
- Protected Member Functions inherited from SdfAbstractDataConstValue
 SdfAbstractDataConstValue (const void *value_, const std::type_info &valueType_)
 

Detailed Description

template<class T>
class SdfAbstractDataConstTypedValue< T >

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

An SdfAbstractDataConstTypedValue 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 store the contained object in a more efficient way, avoiding unnecessary boxing/unboxing of data.

SdfAbstractDataConstTypedValue objects are intended to be transient; they are solely used to get pointer information into an SdfAbstractData container.

Definition at line 561 of file abstractData.h.

Constructor & Destructor Documentation

◆ SdfAbstractDataConstTypedValue()

SdfAbstractDataConstTypedValue ( const T *  value)
inline

Definition at line 564 of file abstractData.h.

Member Function Documentation

◆ GetValue()

virtual bool GetValue ( VtValue v) const
inlinevirtual

Implements SdfAbstractDataConstValue.

Definition at line 568 of file abstractData.h.

◆ IsEqual()

virtual bool IsEqual ( const VtValue v) const
inlinevirtual

Implements SdfAbstractDataConstValue.

Definition at line 574 of file abstractData.h.


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