cesium-native 0.48.0
Loading...
Searching...
No Matches
CesiumGltf::PropertyArrayView< std::string_view > Class Reference

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.
 
 PropertyArrayView ()
 Constructs an empty array view.
 
 PropertyArrayView (const std::span< const std::byte > &buffer) noexcept
 Constructs an array view from a buffer.
 
const std::string_view & operator[] (int64_t index) const noexcept
 Accesses the element of this array at the given index.
 
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.
 

Detailed Description

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 229 of file PropertyArrayView.h.

Constructor & Destructor Documentation

◆ PropertyArrayView() [1/4]

CesiumGltf::PropertyArrayView< std::string_view >::PropertyArrayView ( )
inline

Constructs an empty array view.

Definition at line 234 of file PropertyArrayView.h.

◆ PropertyArrayView() [2/4]

CesiumGltf::PropertyArrayView< std::string_view >::PropertyArrayView ( const std::span< const std::byte > & values,
const std::span< const std::byte > & stringOffsets,
PropertyComponentType stringOffsetType,
int64_t size )
inlinenoexcept

Constructs an array view from buffers and their information.

Parameters
valuesThe buffer containing the values.
stringOffsetsThe buffer containing the string offsets.
stringOffsetTypeThe component type of the string offsets.
sizeThe number of values in the array.

Definition at line 248 of file PropertyArrayView.h.

◆ PropertyArrayView() [3/4]

CesiumGltf::PropertyArrayView< std::string_view >::PropertyArrayView ( )
inline

Constructs an empty array view.

Definition at line 26 of file PropertyArrayView.h.

◆ PropertyArrayView() [4/4]

CesiumGltf::PropertyArrayView< std::string_view >::PropertyArrayView ( const std::span< const std::byte > & buffer)
inlinenoexcept

Constructs an array view from a buffer.

Parameters
bufferThe buffer containing the values.

Definition at line 33 of file PropertyArrayView.h.

Member Function Documentation

◆ begin() [1/2]

auto CesiumGltf::PropertyArrayView< std::string_view >::begin ( )
inline

The begin iterator.

Definition at line 53 of file PropertyArrayView.h.

◆ begin() [2/2]

auto CesiumGltf::PropertyArrayView< std::string_view >::begin ( ) const
inline

The begin iterator.

Definition at line 59 of file PropertyArrayView.h.

◆ end() [1/2]

auto CesiumGltf::PropertyArrayView< std::string_view >::end ( )
inline

The end iterator.

Definition at line 57 of file PropertyArrayView.h.

◆ end() [2/2]

auto CesiumGltf::PropertyArrayView< std::string_view >::end ( ) const
inline

The end iterator.

Definition at line 61 of file PropertyArrayView.h.

◆ operator[]() [1/2]

const std::string_view & CesiumGltf::PropertyArrayView< std::string_view >::operator[] ( int64_t index) const
inlinenoexcept

Accesses the element of this array at the given index.

Definition at line 39 of file PropertyArrayView.h.

◆ operator[]() [2/2]

std::string_view CesiumGltf::PropertyArrayView< std::string_view >::operator[] ( int64_t index) const
inlinenoexcept

Obtains an std::string_view for the element at the given index.

Definition at line 261 of file PropertyArrayView.h.

◆ size() [1/2]

int64_t CesiumGltf::PropertyArrayView< std::string_view >::size ( ) const
inlinenoexcept

The number of elements in this array.

Definition at line 46 of file PropertyArrayView.h.

◆ size() [2/2]

int64_t CesiumGltf::PropertyArrayView< std::string_view >::size ( ) const
inlinenoexcept

The number of elements in this array.

Definition at line 278 of file PropertyArrayView.h.


The documentation for this class was generated from the following file: