cesium-native 0.43.0
|
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 77 of file PropertyArrayView.h.
|
inline |
Constructs an empty array view.
Definition at line 82 of file PropertyArrayView.h.
|
inlinenoexcept |
Constructs an array view from a buffer.
values | The buffer 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 108 of file PropertyArrayView.h.
|
inline |
Copy constructor.
Definition at line 112 of file PropertyArrayView.h.
|
inline |
The begin
iterator.
Definition at line 136 of file PropertyArrayView.h.
|
inline |
The begin
iterator.
Definition at line 140 of file PropertyArrayView.h.
|
inline |
The end
iterator.
Definition at line 138 of file PropertyArrayView.h.
|
inline |
The end
iterator.
Definition at line 142 of file PropertyArrayView.h.
|
inline |
Copy assignment operator.
Definition at line 116 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 128 of file PropertyArrayView.h.
|
inlinenoexcept |
The number of elements in this array.
Definition at line 133 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 157 of file PropertyArrayView.h.
|
inline |
Obtains a PropertyArrayView over the contents of this copy.
Definition at line 147 of file PropertyArrayView.h.