cesium-native
0.41.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. More... | |
PropertyArrayCopy (PropertyArrayCopy &&)=default | |
PropertyArrayCopy & | operator= (PropertyArrayCopy &&)=default |
PropertyArrayCopy (std::vector< std::byte > &&buffer) noexcept | |
PropertyArrayCopy (const PropertyArrayCopy &rhs) | |
PropertyArrayCopy & | operator= (const PropertyArrayCopy &rhs) |
const ElementType & | operator[] (int64_t index) const noexcept |
int64_t | size () const noexcept |
auto | begin () |
auto | end () |
auto | begin () const |
auto | end () const |
const PropertyArrayView< ElementType > & | view () const |
PropertyArrayView< ElementType > | toViewAndExternalBuffer (std::vector< std::byte > &outBuffer) && |
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 64 of file PropertyArrayView.h.
|
inlinenoexcept |
Constructs an array view from a buffer.
buffer | The buffer containing the values. |
Definition at line 76 of file PropertyArrayView.h.