cesium-native  0.41.0
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 gsl::span< const std::byte > &buffer) noexcept
 Constructs an array view from a buffer. More...
 
const ElementType & operator[] (int64_t index) const noexcept
 
int64_t size () const noexcept
 
auto begin ()
 
auto end ()
 
auto begin () const
 
auto end () const
 

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

Constructor & Destructor Documentation

◆ PropertyArrayView()

template<typename ElementType >
CesiumGltf::PropertyArrayView< ElementType >::PropertyArrayView ( const gsl::span< const std::byte > &  buffer)
inlinenoexcept

Constructs an array view from a buffer.

Parameters
bufferThe buffer containing the values.

Definition at line 36 of file PropertyArrayView.h.


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