SdfUnregisteredValue Class Reference

Stores a representation of the value for an unregistered metadata field encountered during text layer parsing. More...

Inherits equality_comparable< SdfUnregisteredValue >.

Public Member Functions

SDF_API SdfUnregisteredValue ()
 Wraps an empty VtValue. More...
 
SDF_API SdfUnregisteredValue (const std::string &value)
 Wraps a std::string. More...
 
SDF_API SdfUnregisteredValue (const VtDictionary &value)
 Wraps a VtDictionary. More...
 
SDF_API SdfUnregisteredValue (const SdfUnregisteredValueListOp &value)
 Wraps a SdfUnregisteredValueListOp. More...
 
const VtValueGetValue () const
 Returns the wrapped VtValue specified in the constructor. More...
 
SDF_API bool operator== (const SdfUnregisteredValue &other) const
 Returns true if the wrapped VtValues are equal. More...
 

Friends

size_t hash_value (const SdfUnregisteredValue &uv)
 Hash. More...
 

Detailed Description

Stores a representation of the value for an unregistered metadata field encountered during text layer parsing.

This provides the ability to serialize this data to a layer, as well as limited inspection and editing capabilities (e.g., moving this data to a different spec or field) even when the data type of the value isn't known.

Definition at line 486 of file types.h.

Constructor & Destructor Documentation

◆ SdfUnregisteredValue() [1/4]

SDF_API SdfUnregisteredValue ( )

Wraps an empty VtValue.

◆ SdfUnregisteredValue() [2/4]

SDF_API SdfUnregisteredValue ( const std::string &  value)
explicit

Wraps a std::string.

◆ SdfUnregisteredValue() [3/4]

SDF_API SdfUnregisteredValue ( const VtDictionary value)
explicit

Wraps a VtDictionary.

◆ SdfUnregisteredValue() [4/4]

SDF_API SdfUnregisteredValue ( const SdfUnregisteredValueListOp &  value)
explicit

Wraps a SdfUnregisteredValueListOp.

Member Function Documentation

◆ GetValue()

const VtValue& GetValue ( ) const
inline

Returns the wrapped VtValue specified in the constructor.

Definition at line 503 of file types.h.

◆ operator==()

SDF_API bool operator== ( const SdfUnregisteredValue other) const

Returns true if the wrapped VtValues are equal.

Friends And Related Function Documentation

◆ hash_value

size_t hash_value ( const SdfUnregisteredValue uv)
friend

Hash.

Definition at line 508 of file types.h.


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