|
cesium-native 0.56.0
|
A copy of a string array element of a PropertyTableProperty.
More...
#include <CesiumGltf/PropertyArrayView.h>
Public Member Functions | |
| PropertyArrayCopy () | |
| Constructs an empty array copy. | |
| PropertyArrayCopy (const std::vector< std::string > &values) noexcept | |
| Constructs a string array copy from a vector. | |
| PropertyArrayCopy (PropertyArrayCopy &&)=default | |
| Default move constructor. | |
| PropertyArrayCopy & | operator= (PropertyArrayCopy &&)=default |
| Default move assignment operator. | |
| PropertyArrayCopy (const PropertyArrayCopy &rhs) | |
| Copy constructor. | |
| PropertyArrayCopy & | operator= (const PropertyArrayCopy &rhs) |
| Copy assignment operator. | |
| std::string_view | operator[] (int64_t index) const noexcept |
Returns the ElementType at the given index from this copy. | |
| int64_t | size () const noexcept |
| The number of elements in this array. | |
| const PropertyArrayView< std::string_view > & | view () const |
| Obtains a PropertyArrayView over the contents of this copy. | |
| PropertyArrayView< std::string_view > | toViewAndExternalBuffer (std::vector< std::byte > &outBuffer) && |
| Obtains a buffer and view from the copied data, leaving this PropertyArrayCopy empty. | |
| PropertyArrayCopy () | |
| Constructs an empty array copy. | |
| PropertyArrayCopy (const std::vector< std::string_view > &values) noexcept | |
| Constructs an array copy from a vector. | |
| PropertyArrayCopy (PropertyArrayCopy &&)=default | |
| Default move constructor. | |
| PropertyArrayCopy (std::vector< std::byte > &&buffer) noexcept | |
| Creates a new PropertyArrayCopy directly from a buffer of bytes, which will be moved into this copy. | |
| PropertyArrayCopy (const PropertyArrayCopy &rhs) | |
| Copy constructor. | |
| PropertyArrayCopy & | operator= (PropertyArrayCopy &&)=default |
| Default move assignment operator. | |
| PropertyArrayCopy & | operator= (const PropertyArrayCopy &rhs) |
| Copy assignment operator. | |
| const std::string_view & | operator[] (int64_t index) const noexcept |
Returns the ElementType at the given index from this copy. | |
| int64_t | size () const noexcept |
| The number of elements in this array. | |
| auto | begin () |
The begin iterator. | |
| auto | begin () const |
The begin iterator. | |
| auto | end () |
The end iterator. | |
| auto | end () const |
The end iterator. | |
| const PropertyArrayView< std::string_view > & | view () const |
| Obtains a PropertyArrayView over the contents of this copy. | |
| PropertyArrayView< std::string_view > | toViewAndExternalBuffer (std::vector< std::byte > &outBuffer) && |
| Obtains a buffer and view from the copied data, leaving this PropertyArrayCopy empty. | |
A copy of a string array element of a PropertyTableProperty.
Whereas PropertyArrayView is a pointer to data stored in a separate place, a PropertyArrayCopy owns the data that it's viewing.
Provides utility to retrieve the data stored in the array of elements via the array index operator.
Definition at line 395 of file PropertyArrayView.h.
|
inline |
Constructs an empty array copy.
Definition at line 400 of file PropertyArrayView.h.
|
inlinenoexcept |
Constructs a string array copy from a vector.
| values | The vector containing the values. |
Definition at line 407 of file PropertyArrayView.h.
|
inline |
Copy constructor.
Definition at line 475 of file PropertyArrayView.h.
|
inline |
Constructs an empty array copy.
Definition at line 82 of file PropertyArrayView.h.
|
inlinenoexcept |
Constructs an array copy from a vector.
| values | The vector containing the values. |
Definition at line 89 of file PropertyArrayView.h.
|
inlinenoexcept |
Creates a new PropertyArrayCopy directly from a buffer of bytes, which will be moved into this copy.
Definition at line 109 of file PropertyArrayView.h.
|
inline |
Copy constructor.
Definition at line 113 of file PropertyArrayView.h.
|
inline |
The begin iterator.
Definition at line 137 of file PropertyArrayView.h.
|
inline |
The begin iterator.
Definition at line 141 of file PropertyArrayView.h.
|
inline |
The end iterator.
Definition at line 139 of file PropertyArrayView.h.
|
inline |
The end iterator.
Definition at line 143 of file PropertyArrayView.h.
|
inline |
Copy assignment operator.
Definition at line 117 of file PropertyArrayView.h.
|
inline |
Copy assignment operator.
Definition at line 490 of file PropertyArrayView.h.
|
inlinenoexcept |
Returns the ElementType at the given index from this copy.
| index | The index to obtain. |
ElementType at that index from the internal view. Definition at line 129 of file PropertyArrayView.h.
|
inlinenoexcept |
Returns the ElementType at the given index from this copy.
| index | The index to obtain. |
ElementType at that index from the internal view. Definition at line 511 of file PropertyArrayView.h.
|
inlinenoexcept |
The number of elements in this array.
Definition at line 134 of file PropertyArrayView.h.
|
inlinenoexcept |
The number of elements in this array.
Definition at line 516 of file PropertyArrayView.h.
|
inline |
Obtains a buffer and view from the copied data, leaving this PropertyArrayCopy empty.
| outBuffer | The destination where this copy's internal buffer will be moved to. |
Definition at line 158 of file PropertyArrayView.h.
|
inline |
Obtains a buffer and view from the copied data, leaving this PropertyArrayCopy empty.
| outBuffer | The destination where this copy's internal buffer will be moved to. |
Definition at line 533 of file PropertyArrayView.h.
|
inline |
Obtains a PropertyArrayView over the contents of this copy.
Definition at line 148 of file PropertyArrayView.h.
|
inline |
Obtains a PropertyArrayView over the contents of this copy.
Definition at line 521 of file PropertyArrayView.h.