MeshLib Documentation
Loading...
Searching...
No Matches
MR::UnitToStringParams< E > Struct Template Reference

#include <MRUnits.h>

Public Attributes

std::string_view decorationFormatString = "{}"
 
std::optional< E > sourceUnit = getDefaultUnitParams<E>().sourceUnit
 
std::optional< E > targetUnit = getDefaultUnitParams<E>().targetUnit
 
bool unitSuffix = getDefaultUnitParams<E>().unitSuffix
 
NumberStyle style = getDefaultUnitParams<E>().style
 
int precision = getDefaultUnitParams<E>().precision
 
bool allowNegativeZero = getDefaultUnitParams<E>().allowNegativeZero
 
bool unicodeMinusSign = getDefaultUnitParams<E>().unicodeMinusSign
 
char thousandsSeparator = getDefaultUnitParams<E>().thousandsSeparator
 
char thousandsSeparatorFrac = getDefaultUnitParams<E>().thousandsSeparatorFrac
 
bool leadingZero = getDefaultUnitParams<E>().leadingZero
 
bool stripTrailingZeroes = getDefaultUnitParams<E>().stripTrailingZeroes
 
std::conditional_t< std::is_same_v< E, AngleUnit >, DegreesMode, detail::Units::EmptydegreesMode = getDefaultUnitParams<E>().degreesMode
 

Friends

bool operator== (const UnitToStringParams &, const UnitToStringParams &)=default
 

Friends And Related Symbol Documentation

◆ operator==

template<UnitEnum E>
bool operator== ( const UnitToStringParams< E > & ,
const UnitToStringParams< E > &  )
friend

Member Data Documentation

◆ allowNegativeZero

template<UnitEnum E>
bool MR::UnitToStringParams< E >::allowNegativeZero = getDefaultUnitParams<E>().allowNegativeZero

◆ decorationFormatString

template<UnitEnum E>
std::string_view MR::UnitToStringParams< E >::decorationFormatString = "{}"

◆ degreesMode

template<UnitEnum E>
std::conditional_t<std::is_same_v<E, AngleUnit>, DegreesMode, detail::Units::Empty> MR::UnitToStringParams< E >::degreesMode = getDefaultUnitParams<E>().degreesMode

◆ leadingZero

template<UnitEnum E>
bool MR::UnitToStringParams< E >::leadingZero = getDefaultUnitParams<E>().leadingZero

◆ precision

template<UnitEnum E>
int MR::UnitToStringParams< E >::precision = getDefaultUnitParams<E>().precision

◆ sourceUnit

template<UnitEnum E>
std::optional<E> MR::UnitToStringParams< E >::sourceUnit = getDefaultUnitParams<E>().sourceUnit

◆ stripTrailingZeroes

template<UnitEnum E>
bool MR::UnitToStringParams< E >::stripTrailingZeroes = getDefaultUnitParams<E>().stripTrailingZeroes

◆ style

template<UnitEnum E>
NumberStyle MR::UnitToStringParams< E >::style = getDefaultUnitParams<E>().style

◆ targetUnit

template<UnitEnum E>
std::optional<E> MR::UnitToStringParams< E >::targetUnit = getDefaultUnitParams<E>().targetUnit

◆ thousandsSeparator

template<UnitEnum E>
char MR::UnitToStringParams< E >::thousandsSeparator = getDefaultUnitParams<E>().thousandsSeparator

◆ thousandsSeparatorFrac

template<UnitEnum E>
char MR::UnitToStringParams< E >::thousandsSeparatorFrac = getDefaultUnitParams<E>().thousandsSeparatorFrac

◆ unicodeMinusSign

template<UnitEnum E>
bool MR::UnitToStringParams< E >::unicodeMinusSign = getDefaultUnitParams<E>().unicodeMinusSign

◆ unitSuffix

template<UnitEnum E>
bool MR::UnitToStringParams< E >::unitSuffix = getDefaultUnitParams<E>().unitSuffix

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