Loading...
Searching...
No Matches
SdfUnregisteredValue Class Reference

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

#include <types.h>

Public Member Functions

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

Friends

size_t hash_value (const SdfUnregisteredValue &uv)
 Hash.
 

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 485 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 501 of file types.h.

◆ operator!=()

SDF_API bool operator!= ( const SdfUnregisteredValue other) const

Returns true if the wrapped VtValues are not equal.

◆ 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 506 of file types.h.


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