cesium-native 0.62.0
Loading...
Searching...
No Matches
CesiumGltf::MetadataConversions< double, TFrom, std::enable_if_t< CesiumGltf::IsMetadataInteger< TFrom >::value > > Struct Template Reference

Converts from any integer type to a double. More...

#include <CesiumGltf/MetadataConversions.h>

Static Public Member Functions

static std::optional< double > convert (TFrom from)
 Converts any integer type to a double. The value may lose precision during conversion.
 
static std::optional< double > convert (TFrom)
 Converts between TFrom and TTo where no actual conversion is defined, returning std::nullopt.
 

Detailed Description

template<typename TFrom>
struct CesiumGltf::MetadataConversions< double, TFrom, std::enable_if_t< CesiumGltf::IsMetadataInteger< TFrom >::value > >

Converts from any integer type to a double.

Definition at line 483 of file MetadataConversions.h.

Member Function Documentation

◆ convert() [1/2]

template<typename TFrom>
static std::optional< double > CesiumGltf::MetadataConversions< double, TFrom, std::enable_if_t< CesiumGltf::IsMetadataInteger< TFrom >::value > >::convert ( TFrom from)
inlinestatic

Converts any integer type to a double. The value may lose precision during conversion.

Parameters
fromThe boolean value to be converted.

Definition at line 493 of file MetadataConversions.h.

◆ convert() [2/2]

static std::optional< double > CesiumGltf::MetadataConversions< double, TFrom, std::enable_if_t< CesiumGltf::IsMetadataInteger< TFrom >::value > >::convert ( TFrom )
inlinestatic

Converts between TFrom and TTo where no actual conversion is defined, returning std::nullopt.

Definition at line 26 of file MetadataConversions.h.


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