OnixS C++ B3 Binary UMDF Market Data Handler 1.10.0
Users' manual and API documentation
Loading...
Searching...
No Matches
FixedPointDecimal< MantissaType, ExponentType > Class Template Reference

#include <OnixS/B3/MarketData/UMDF/messaging/Decimal.h>

Public Types

enum  
typedef MantissaType Mantissa
typedef ExponentType Exponent

Public Member Functions

 __attribute__ ((__warn_unused_result__)) std
constexpr FixedPointDecimal (Mantissa mantissa) noexcept
constexpr Mantissa mantissa () const noexcept
constexpr Exponent exponent () const noexcept
void serialize (void *addr) const noexcept

Detailed Description

template<class MantissaType, class ExponentType>
class OnixS::B3::MarketData::UMDF::Messaging::FixedPointDecimal< MantissaType, ExponentType >

A real number with a constant exponent.

Definition at line 40 of file Decimal.h.

Member Typedef Documentation

◆ Exponent

template<class MantissaType, class ExponentType>
typedef ExponentType Exponent

Exponent component type.

Definition at line 59 of file Decimal.h.

◆ Mantissa

template<class MantissaType, class ExponentType>
typedef MantissaType Mantissa

Mantissa component type.

Definition at line 56 of file Decimal.h.

Member Enumeration Documentation

◆ anonymous enum

template<class MantissaType, class ExponentType>
anonymous enum

Traits.

Enumerator
Size sizeof(Mantissa) 

Size of the class in bytes.

Definition at line 62 of file Decimal.h.

Constructor & Destructor Documentation

◆ FixedPointDecimal()

template<class MantissaType, class ExponentType>
FixedPointDecimal ( Mantissa mantissa)
inlineexplicitconstexprnoexcept

Explicitly initializes the instance from the mantissa value.

Definition at line 83 of file Decimal.h.

Member Function Documentation

◆ __attribute__()

template<class MantissaType, class ExponentType>
__attribute__ ( (__warn_unused_result__) )
inline
Returns
a human-readable presentation.

Definition at line 69 of file Decimal.h.

◆ exponent()

template<class MantissaType, class ExponentType>
Exponent exponent ( ) const
inlineconstexprnoexcept
Returns
exponent.

Definition at line 97 of file Decimal.h.

◆ mantissa()

template<class MantissaType, class ExponentType>
Mantissa mantissa ( ) const
inlineconstexprnoexcept
Returns
mantissa.

Definition at line 90 of file Decimal.h.

◆ serialize()

template<class MantissaType, class ExponentType>
void serialize ( void * addr) const
inlinenoexcept

Serialize to the given data buffer.

Definition at line 103 of file Decimal.h.