OnixS C++ CME MDP Conflated TCP Handler  1.3.1
API Documentation
FloatingPointDecimal< MantissaType, ExponentType > Class Template Reference

#include <OnixS/CME/ConflatedTCP/messaging/MDP/Decimal.h>

Public Types

enum  { Size = sizeof(Mantissa) + sizeof(Exponent) }
 
typedef MantissaType Mantissa
 
typedef ExponentType Exponent
 

Public Member Functions

std::string toString () const
 
constexpr FloatingPointDecimal () noexcept
 
constexpr FloatingPointDecimal (Mantissa mantissa, Exponent exponent) noexcept
 
constexpr FloatingPointDecimal (const FloatingPointDecimal &other) noexcept
 
Mantissa mantissa () const noexcept
 
Exponent exponent () const noexcept
 
FloatingPointDecimaloperator= (const FloatingPointDecimal &other) noexcept
 
template<class OtherMantissa , class OtherExponent >
 FloatingPointDecimal (const FloatingPointDecimal< OtherMantissa, OtherExponent > &other) noexcept
 
template<class OtherMantissa , class OtherExponent >
 FloatingPointDecimal (const FixedPointDecimal< OtherMantissa, OtherExponent > &other) noexcept
 
template<class OtherMantissa , class OtherExponent >
FloatingPointDecimaloperator= (const FloatingPointDecimal< OtherMantissa, OtherExponent > &other) noexcept
 
template<class OtherMantissa , class OtherExponent >
FloatingPointDecimaloperator= (const FixedPointDecimal< OtherMantissa, OtherExponent > &other) noexcept
 
void serialize (void *addr) const noexcept
 

Detailed Description

template<class MantissaType, class ExponentType>
class OnixS::CME::ConflatedTCP::Messaging::MDP::FloatingPointDecimal< MantissaType, ExponentType >

Definition at line 32 of file Decimal.h.

Member Typedef Documentation

typedef ExponentType Exponent

Exponent component type.

Definition at line 59 of file Decimal.h.

typedef MantissaType Mantissa

Mantissa component type.

Definition at line 56 of file Decimal.h.

Member Enumeration Documentation

anonymous enum

Traits.

Enumerator
Size 

Size of the class in bytes.

Definition at line 62 of file Decimal.h.

Constructor & Destructor Documentation

constexpr FloatingPointDecimal ( )
inlinenoexcept

Default (zero) initialization.

Definition at line 77 of file Decimal.h.

constexpr FloatingPointDecimal ( Mantissa  mantissa,
Exponent  exponent 
)
inlinenoexcept

Explicitly initializes the instance from the mantissa and exponent values.

Definition at line 85 of file Decimal.h.

constexpr FloatingPointDecimal ( const FloatingPointDecimal< MantissaType, ExponentType > &  other)
inlinenoexcept

Initializes the instance as a copy of the given one.

Definition at line 93 of file Decimal.h.

FloatingPointDecimal ( const FloatingPointDecimal< OtherMantissa, OtherExponent > &  other)
inlineexplicitnoexcept

Initializes the instance from the floating point decimal.

Definition at line 124 of file Decimal.h.

FloatingPointDecimal ( const FixedPointDecimal< OtherMantissa, OtherExponent > &  other)
inlineexplicitnoexcept

Initializes the instance from the fixed point decimal.

Definition at line 132 of file Decimal.h.

Member Function Documentation

Exponent exponent ( ) const
inlinenoexcept
Returns
exponent.

Definition at line 107 of file Decimal.h.

Mantissa mantissa ( ) const
inlinenoexcept
Returns
mantissa.

Definition at line 101 of file Decimal.h.

FloatingPointDecimal& operator= ( const FloatingPointDecimal< MantissaType, ExponentType > &  other)
inlinenoexcept

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

Definition at line 113 of file Decimal.h.

FloatingPointDecimal& operator= ( const FloatingPointDecimal< OtherMantissa, OtherExponent > &  other)
inlinenoexcept

Re-initializes instance as a copy of the floating point value.

Definition at line 145 of file Decimal.h.

FloatingPointDecimal& operator= ( const FixedPointDecimal< OtherMantissa, OtherExponent > &  other)
inlinenoexcept

Re-initializes instance as a copy of the fixed point value.

Definition at line 161 of file Decimal.h.

void serialize ( void *  addr) const
inlinenoexcept

Serializes to the given data buffer.

Definition at line 170 of file Decimal.h.

std::string toString ( ) const
inline
Returns
a human-readable presentation.

Definition at line 70 of file Decimal.h.


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