cesium-native 0.44.2
Loading...
Searching...
No Matches
CesiumGltf::CountFromAccessor Struct Reference

Visitor that retrieves the count of elements in the given accessor type as an int64_t. More...

#include <CesiumGltf/AccessorUtility.h>

Public Member Functions

int64_t operator() (std::monostate)
 Attempts to obtain an element count from an empty accessor variant, resulting in 0.
 
template<typename T >
int64_t operator() (const AccessorView< T > &value)
 Attempts to obtain an element count from an AccessorView.
 

Detailed Description

Visitor that retrieves the count of elements in the given accessor type as an int64_t.

Definition at line 16 of file AccessorUtility.h.

Member Function Documentation

◆ operator()() [1/2]

template<typename T >
int64_t CesiumGltf::CountFromAccessor::operator() ( const AccessorView< T > & value)
inline

Attempts to obtain an element count from an AccessorView.

Definition at line 22 of file AccessorUtility.h.

◆ operator()() [2/2]

int64_t CesiumGltf::CountFromAccessor::operator() ( std::monostate )
inline

Attempts to obtain an element count from an empty accessor variant, resulting in 0.

Definition at line 19 of file AccessorUtility.h.


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