cesium-native 0.43.0
|
A view on a string array element of a PropertyTableProperty
or PropertyTextureProperty
.
More...
#include <CesiumGltf/PropertyArrayView.h>
Public Member Functions | |
PropertyArrayView () | |
Constructs an empty array view. | |
PropertyArrayView (const std::span< const std::byte > &values, const std::span< const std::byte > &stringOffsets, PropertyComponentType stringOffsetType, int64_t size) noexcept | |
Constructs an array view from buffers and their information. | |
std::string_view | operator[] (int64_t index) const noexcept |
Obtains an std::string_view for the element at the given index. | |
int64_t | size () const noexcept |
The number of elements in this array. | |
A view on a string array element of a PropertyTableProperty
or PropertyTextureProperty
.
Provides utility to retrieve the data stored in the array of elements via the array index operator.
Definition at line 226 of file PropertyArrayView.h.
|
inline |
Constructs an empty array view.
Definition at line 231 of file PropertyArrayView.h.
|
inlinenoexcept |
Constructs an array view from buffers and their information.
values | The buffer containing the values. |
stringOffsets | The buffer containing the string offsets. |
stringOffsetType | The component type of the string offsets. |
size | The number of values in the array. |
Definition at line 245 of file PropertyArrayView.h.
|
inlinenoexcept |
Obtains an std::string_view
for the element at the given index.
Definition at line 258 of file PropertyArrayView.h.
|
inlinenoexcept |
The number of elements in this array.
Definition at line 273 of file PropertyArrayView.h.