cesium-native 0.56.0
Loading...
Searching...
No Matches
CesiumGltf::PropertyArrayCopy< bool > Class Reference

A copy of a bool array element of a PropertyTableProperty or PropertyTextureProperty. More...

#include <CesiumGltf/PropertyArrayView.h>

Public Member Functions

 PropertyArrayCopy ()
 Constructs an empty array copy.
 
 PropertyArrayCopy (const std::vector< bool > &values) noexcept
 Constructs a bool array copy from a vector.
 
 PropertyArrayCopy (PropertyArrayCopy &&)=default
 Default move constructor.
 
PropertyArrayCopyoperator= (PropertyArrayCopy &&)=default
 Default move assignment operator.
 
 PropertyArrayCopy (const PropertyArrayCopy &rhs)
 Copy constructor.
 
PropertyArrayCopyoperator= (const PropertyArrayCopy &rhs)
 Copy assignment operator.
 
bool operator[] (int64_t index) const noexcept
 Returns the ElementType at the given index from this copy.
 
int64_t size () const noexcept
 The number of elements in this array.
 
const PropertyArrayView< bool > & view () const
 Obtains a PropertyArrayView over the contents of this copy.
 
PropertyArrayView< bool > toViewAndExternalBuffer (std::vector< std::byte > &outBuffer) &&
 Obtains a buffer and view from the copied data, leaving this PropertyArrayCopy empty.
 
 PropertyArrayCopy ()
 Constructs an empty array copy.
 
 PropertyArrayCopy (const std::vector< bool > &values) noexcept
 Constructs an array copy from a vector.
 
 PropertyArrayCopy (PropertyArrayCopy &&)=default
 Default move constructor.
 
 PropertyArrayCopy (std::vector< std::byte > &&buffer) noexcept
 Creates a new PropertyArrayCopy directly from a buffer of bytes, which will be moved into this copy.
 
 PropertyArrayCopy (const PropertyArrayCopy &rhs)
 Copy constructor.
 
PropertyArrayCopyoperator= (PropertyArrayCopy &&)=default
 Default move assignment operator.
 
PropertyArrayCopyoperator= (const PropertyArrayCopy &rhs)
 Copy assignment operator.
 
const bool & operator[] (int64_t index) const noexcept
 Returns the ElementType at the given index from this copy.
 
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.
 
const PropertyArrayView< bool > & view () const
 Obtains a PropertyArrayView over the contents of this copy.
 
PropertyArrayView< bool > toViewAndExternalBuffer (std::vector< std::byte > &outBuffer) &&
 Obtains a buffer and view from the copied data, leaving this PropertyArrayCopy empty.
 

Detailed Description

A copy of a bool 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 232 of file PropertyArrayView.h.

Constructor & Destructor Documentation

◆ PropertyArrayCopy() [1/7]

CesiumGltf::PropertyArrayCopy< bool >::PropertyArrayCopy ( )
inline

Constructs an empty array copy.

Definition at line 237 of file PropertyArrayView.h.

◆ PropertyArrayCopy() [2/7]

CesiumGltf::PropertyArrayCopy< bool >::PropertyArrayCopy ( const std::vector< bool > & values)
inlinenoexcept

Constructs a bool array copy from a vector.

Parameters
valuesThe vector containing the values.

Definition at line 244 of file PropertyArrayView.h.

◆ PropertyArrayCopy() [3/7]

CesiumGltf::PropertyArrayCopy< bool >::PropertyArrayCopy ( const PropertyArrayCopy< bool > & rhs)
inline

Copy constructor.

Definition at line 273 of file PropertyArrayView.h.

◆ PropertyArrayCopy() [4/7]

CesiumGltf::PropertyArrayCopy< bool >::PropertyArrayCopy ( )
inline

Constructs an empty array copy.

Definition at line 82 of file PropertyArrayView.h.

◆ PropertyArrayCopy() [5/7]

CesiumGltf::PropertyArrayCopy< bool >::PropertyArrayCopy ( const std::vector< bool > & values)
inlinenoexcept

Constructs an array copy from a vector.

Parameters
valuesThe vector containing the values.

Definition at line 89 of file PropertyArrayView.h.

◆ PropertyArrayCopy() [6/7]

CesiumGltf::PropertyArrayCopy< bool >::PropertyArrayCopy ( std::vector< std::byte > && buffer)
inlinenoexcept

Creates a new PropertyArrayCopy directly from a buffer of bytes, which will be moved into this copy.

Definition at line 109 of file PropertyArrayView.h.

◆ PropertyArrayCopy() [7/7]

CesiumGltf::PropertyArrayCopy< bool >::PropertyArrayCopy ( const PropertyArrayCopy< bool > & rhs)
inline

Copy constructor.

Definition at line 113 of file PropertyArrayView.h.

Member Function Documentation

◆ begin() [1/2]

auto CesiumGltf::PropertyArrayCopy< bool >::begin ( )
inline

The begin iterator.

Definition at line 137 of file PropertyArrayView.h.

◆ begin() [2/2]

auto CesiumGltf::PropertyArrayCopy< bool >::begin ( ) const
inline

The begin iterator.

Definition at line 141 of file PropertyArrayView.h.

◆ end() [1/2]

auto CesiumGltf::PropertyArrayCopy< bool >::end ( )
inline

The end iterator.

Definition at line 139 of file PropertyArrayView.h.

◆ end() [2/2]

auto CesiumGltf::PropertyArrayCopy< bool >::end ( ) const
inline

The end iterator.

Definition at line 143 of file PropertyArrayView.h.

◆ operator=() [1/2]

PropertyArrayCopy & CesiumGltf::PropertyArrayCopy< bool >::operator= ( const PropertyArrayCopy< bool > & rhs)
inline

Copy assignment operator.

Definition at line 117 of file PropertyArrayView.h.

◆ operator=() [2/2]

PropertyArrayCopy & CesiumGltf::PropertyArrayCopy< bool >::operator= ( const PropertyArrayCopy< bool > & rhs)
inline

Copy assignment operator.

Definition at line 277 of file PropertyArrayView.h.

◆ operator[]() [1/2]

const bool & CesiumGltf::PropertyArrayCopy< bool >::operator[] ( int64_t index) const
inlinenoexcept

Returns the ElementType at the given index from this copy.

Parameters
indexThe index to obtain.
Returns
The ElementType at that index from the internal view.

Definition at line 129 of file PropertyArrayView.h.

◆ operator[]() [2/2]

bool CesiumGltf::PropertyArrayCopy< bool >::operator[] ( int64_t index) const
inlinenoexcept

Returns the ElementType at the given index from this copy.

Parameters
indexThe index to obtain.
Returns
The ElementType at that index from the internal view.

Definition at line 289 of file PropertyArrayView.h.

◆ size() [1/2]

int64_t CesiumGltf::PropertyArrayCopy< bool >::size ( ) const
inlinenoexcept

The number of elements in this array.

Definition at line 134 of file PropertyArrayView.h.

◆ size() [2/2]

int64_t CesiumGltf::PropertyArrayCopy< bool >::size ( ) const
inlinenoexcept

The number of elements in this array.

Definition at line 292 of file PropertyArrayView.h.

◆ toViewAndExternalBuffer() [1/2]

PropertyArrayView< bool > CesiumGltf::PropertyArrayCopy< bool >::toViewAndExternalBuffer ( std::vector< std::byte > & outBuffer) &&
inline

Obtains a buffer and view from the copied data, leaving this PropertyArrayCopy empty.

Parameters
outBufferThe destination where this copy's internal buffer will be moved to.

Definition at line 158 of file PropertyArrayView.h.

◆ toViewAndExternalBuffer() [2/2]

PropertyArrayView< bool > CesiumGltf::PropertyArrayCopy< bool >::toViewAndExternalBuffer ( std::vector< std::byte > & outBuffer) &&
inline

Obtains a buffer and view from the copied data, leaving this PropertyArrayCopy empty.

Parameters
outBufferThe destination where this copy's internal buffer will be moved to.

Definition at line 307 of file PropertyArrayView.h.

◆ view() [1/2]

const PropertyArrayView< bool > & CesiumGltf::PropertyArrayCopy< bool >::view ( ) const
inline

Obtains a PropertyArrayView over the contents of this copy.

Definition at line 148 of file PropertyArrayView.h.

◆ view() [2/2]

const PropertyArrayView< bool > & CesiumGltf::PropertyArrayCopy< bool >::view ( ) const
inline

Obtains a PropertyArrayView over the contents of this copy.

Definition at line 297 of file PropertyArrayView.h.


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