cesium-native  0.41.0
CesiumGltf::PropertyArrayCopy< ElementType > Class Template Reference

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
 
PropertyArrayCopyoperator= (PropertyArrayCopy &&)=default
 
 PropertyArrayCopy (std::vector< std::byte > &&buffer) noexcept
 
 PropertyArrayCopy (const PropertyArrayCopy &rhs)
 
PropertyArrayCopyoperator= (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) &&
 

Detailed Description

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

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.

Constructor & Destructor Documentation

◆ PropertyArrayCopy()

template<typename ElementType >
CesiumGltf::PropertyArrayCopy< ElementType >::PropertyArrayCopy ( const std::vector< ElementType > &  values)
inlinenoexcept

Constructs an array view from a buffer.

Parameters
bufferThe buffer containing the values.

Definition at line 76 of file PropertyArrayView.h.


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