|
HDK
|
#include <UT_Variant.h>
Public Types | |
| using | container_type = UT_Array< UT_Variant > |
| using | iterator = container_type::iterator |
| using | const_iterator = container_type::const_iterator |
Public Member Functions | |
| UT_VariantArray (exint size=0) | |
| UT_VariantArray (std::initializer_list< UT_Variant > init) | |
| Construct a variant array from an initializer list. More... | |
| UT_VariantArray (const UT_VariantArray &)=default | |
| UT_VariantArray (UT_VariantArray &&)=default | |
| Move the variant array container from another variant array. More... | |
| UT_VariantArray & | operator= (const UT_VariantArray &)=default |
| UT_VariantArray & | operator= (UT_VariantArray &&)=default |
| Move the variant array container from another variant array. More... | |
| bool | operator== (const UT_VariantArray &o) const |
| Item-wise equality comparison of the variants of the two arrays. More... | |
| bool | operator!= (const UT_VariantArray &o) const |
| Item-wise non-equality comparison of the variants of the two arrays. More... | |
| void | deepCopy (const UT_VariantArray &) |
| exint | size () const |
| Returns the number of items in the array container. More... | |
| const UT_Variant & | operator[] (exint index) const |
| UT_Variant & | operator[] (exint index) |
| exint | append (const UT_Variant &t) |
| exint | append (UT_Variant &&t) |
| iterator | begin () |
| Return a writable iterator to the beginning of the array container. More... | |
| const_iterator | begin () const |
| Return a read-only iterator to the beginning of the array container. More... | |
| iterator | end () |
| Return a writable iterator to the end of the array container. More... | |
| const_iterator | end () const |
| Return a read-only iterator to the end of the array container. More... | |
| const container_type & | container () const |
| Returns a read-only reference to the underlying array container. More... | |
| container_type & | container () |
| Returns a writable reference to the underlying array container. More... | |
Wrapper around a shared variant array container. Modifications are shared among all wrappers referring to the same container.
Definition at line 30 of file UT_Variant.h.
Definition at line 35 of file UT_Variant.h.
Definition at line 33 of file UT_Variant.h.
Definition at line 34 of file UT_Variant.h.
| UT_VariantArray::UT_VariantArray | ( | exint | size = 0 | ) |
Construct a variant array of a given size. The constructed variants will all be of the unknown type.
|
inline |
Construct a variant array from an initializer list.
Definition at line 478 of file UT_Variant.h.
|
default |
Construct a variant array by referencing the variant array container from another. Only the pointer to the underlying array is copied. The two wrappers will share the same array.
|
default |
Move the variant array container from another variant array.
|
inline |
Add a new variant to the array container. All instances of a array wrapper that use the same array container will see the new item.
Definition at line 82 of file UT_Variant.h.
|
inline |
Add a new variant to the array container. All instances of a array wrapper that use the same array container will see the new item.
Definition at line 86 of file UT_Variant.h.
Return a writable iterator to the beginning of the array container.
Definition at line 89 of file UT_Variant.h.
|
inline |
Return a read-only iterator to the beginning of the array container.
Definition at line 92 of file UT_Variant.h.
|
inline |
Returns a read-only reference to the underlying array container.
Definition at line 101 of file UT_Variant.h.
|
inline |
Returns a writable reference to the underlying array container.
Definition at line 104 of file UT_Variant.h.
| void UT_VariantArray::deepCopy | ( | const UT_VariantArray & | ) |
Make a deep copy of another array container. This array wrapper will not share the array container with the other.
Return a writable iterator to the end of the array container.
Definition at line 95 of file UT_Variant.h.
|
inline |
Return a read-only iterator to the end of the array container.
Definition at line 98 of file UT_Variant.h.
|
inline |
Item-wise non-equality comparison of the variants of the two arrays.
Definition at line 63 of file UT_Variant.h.
|
default |
Copy a variant array by referencing the variant array container from another. The two variant arrays will share the same list container.
|
default |
Move the variant array container from another variant array.
|
inline |
Item-wise equality comparison of the variants of the two arrays.
Definition at line 60 of file UT_Variant.h.
|
inline |
Returns a read-only variant at index index. No bound-checking is performed.
Definition at line 74 of file UT_Variant.h.
|
inline |
Returns a writable variant at index index. No bound-checking is performed.
Definition at line 78 of file UT_Variant.h.
Returns the number of items in the array container.
Definition at line 70 of file UT_Variant.h.