cesium-native 0.43.0
Loading...
Searching...
No Matches
CesiumGltf::PropertyArrayView< ElementType > Class Template Reference

A view on an 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 > &buffer) noexcept
 Constructs an array view from a buffer.
 
const ElementType & 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 end ()
 The end iterator.
 
auto begin () const
 The begin iterator.
 
auto end () const
 The end iterator.
 

Detailed Description

template<typename ElementType>
class CesiumGltf::PropertyArrayView< ElementType >

A view on an 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 23 of file PropertyArrayView.h.

Constructor & Destructor Documentation

◆ PropertyArrayView() [1/2]

template<typename ElementType >
CesiumGltf::PropertyArrayView< ElementType >::PropertyArrayView ( )
inline

Constructs an empty array view.

Definition at line 28 of file PropertyArrayView.h.

◆ PropertyArrayView() [2/2]

template<typename ElementType >
CesiumGltf::PropertyArrayView< ElementType >::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 35 of file PropertyArrayView.h.

Member Function Documentation

◆ begin() [1/2]

template<typename ElementType >
auto CesiumGltf::PropertyArrayView< ElementType >::begin ( )
inline

The begin iterator.

Definition at line 53 of file PropertyArrayView.h.

◆ begin() [2/2]

template<typename ElementType >
auto CesiumGltf::PropertyArrayView< ElementType >::begin ( ) const
inline

The begin iterator.

Definition at line 59 of file PropertyArrayView.h.

◆ end() [1/2]

template<typename ElementType >
auto CesiumGltf::PropertyArrayView< ElementType >::end ( )
inline

The end iterator.

Definition at line 57 of file PropertyArrayView.h.

◆ end() [2/2]

template<typename ElementType >
auto CesiumGltf::PropertyArrayView< ElementType >::end ( ) const
inline

The end iterator.

Definition at line 61 of file PropertyArrayView.h.

◆ operator[]()

template<typename ElementType >
const ElementType & CesiumGltf::PropertyArrayView< ElementType >::operator[] ( int64_t index) const
inlinenoexcept

Accesses the element of this array at the given index.

Definition at line 41 of file PropertyArrayView.h.

◆ size()

template<typename ElementType >
int64_t CesiumGltf::PropertyArrayView< ElementType >::size ( ) const
inlinenoexcept

The number of elements in this array.

Definition at line 48 of file PropertyArrayView.h.


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