OnixS C++ CME iLink 3 Binary Order Entry Handler 1.18.9
API Documentation
Loading...
Searching...
No Matches
FixedPointDecimal< MantissaType, ExponentType > Class Template Reference

Public Types

enum  
typedef MantissaType Mantissa
typedef ExponentType Exponent

Public Member Functions

std::string toString () const
constexpr FixedPointDecimal () noexcept
constexpr FixedPointDecimal (Mantissa mantissa) noexcept
constexpr FixedPointDecimal (const FixedPointDecimal &other) noexcept
Mantissa mantissa () const noexcept
Exponent exponent () const noexcept
FixedPointDecimaloperator= (const FixedPointDecimal &other) noexcept
void serialize (void *addr) const noexcept

Detailed Description

template<class MantissaType, class ExponentType>
class OnixS::CME::iLink3::Messaging::FixedPointDecimal< MantissaType, ExponentType >

A real number with a constant exponent.

Definition at line 187 of file Decimal.h.

Member Typedef Documentation

◆ Exponent

template<class MantissaType, class ExponentType>
typedef ExponentType Exponent

Exponent component type.

Definition at line 206 of file Decimal.h.

◆ Mantissa

template<class MantissaType, class ExponentType>
typedef MantissaType Mantissa

Mantissa component type.

Definition at line 203 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 209 of file Decimal.h.

Constructor & Destructor Documentation

◆ FixedPointDecimal() [1/3]

template<class MantissaType, class ExponentType>
FixedPointDecimal ( )
inlineconstexprnoexcept

Default (zero) initialization.

Definition at line 224 of file Decimal.h.

◆ FixedPointDecimal() [2/3]

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

Explicitly initializes the instance from the mantissa value.

Definition at line 230 of file Decimal.h.

◆ FixedPointDecimal() [3/3]

template<class MantissaType, class ExponentType>
FixedPointDecimal ( const FixedPointDecimal< MantissaType, ExponentType > & other)
inlineconstexprnoexcept

Initializes the instance as a copy of the given one.

Definition at line 236 of file Decimal.h.

Member Function Documentation

◆ exponent()

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

Definition at line 248 of file Decimal.h.

◆ mantissa()

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

Definition at line 242 of file Decimal.h.

◆ operator=()

template<class MantissaType, class ExponentType>
FixedPointDecimal & operator= ( const FixedPointDecimal< MantissaType, ExponentType > & other)
inlinenoexcept

Re-initializes the instance as a copy of the given one.

Definition at line 254 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 262 of file Decimal.h.

◆ toString()

template<class MantissaType, class ExponentType>
std::string toString ( ) const
inline
Returns
a human-readable presentation.

Definition at line 217 of file Decimal.h.