cesium-native 0.44.2
|
A copy of an array element of a PropertyTableProperty
or PropertyTextureProperty
.
More...
#include <CesiumGltf/PropertyArrayView.h>
Public Member Functions | |
PropertyArrayCopy () | |
Constructs an empty array view. | |
PropertyArrayCopy (const std::vector< ElementType > &values) noexcept | |
Constructs an array view from a buffer. | |
PropertyArrayCopy (PropertyArrayCopy &&)=default | |
Default move constructor. | |
PropertyArrayCopy & | operator= (PropertyArrayCopy &&)=default |
Default move assignment operator. | |
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= (const PropertyArrayCopy &rhs) |
Copy assignment operator. | |
const ElementType & | 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 | end () |
The end iterator. | |
auto | begin () const |
The begin iterator. | |
auto | end () const |
The end iterator. | |
const PropertyArrayView< ElementType > & | view () const |
Obtains a PropertyArrayView over the contents of this copy. | |
PropertyArrayView< ElementType > | toViewAndExternalBuffer (std::vector< std::byte > &outBuffer) && |
Obtains a buffer and view from the copied data, leaving this PropertyArrayCopy empty. | |
A copy of an array element of a PropertyTableProperty
or PropertyTextureProperty
.
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 76 of file PropertyArrayView.h.
|
inline |
Constructs an empty array view.
Definition at line 81 of file PropertyArrayView.h.
|
inlinenoexcept |
Constructs an array view from a buffer.
values | The buffer containing the values. |
Definition at line 88 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 107 of file PropertyArrayView.h.
|
inline |
Copy constructor.
Definition at line 111 of file PropertyArrayView.h.
|
inline |
The begin
iterator.
Definition at line 135 of file PropertyArrayView.h.
|
inline |
The begin
iterator.
Definition at line 139 of file PropertyArrayView.h.
|
inline |
The end
iterator.
Definition at line 137 of file PropertyArrayView.h.
|
inline |
The end
iterator.
Definition at line 141 of file PropertyArrayView.h.
|
inline |
Copy assignment operator.
Definition at line 115 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 127 of file PropertyArrayView.h.
|
inlinenoexcept |
The number of elements in this array.
Definition at line 132 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 156 of file PropertyArrayView.h.
|
inline |
Obtains a PropertyArrayView over the contents of this copy.
Definition at line 146 of file PropertyArrayView.h.