OnixS C++ B3 Binary UMDF Market Data Handler  1.3.0
API documentation
FixedPointDecimal< MantissaType, ExponentType > Class Template Reference

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

Public Types

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

Public Member Functions

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

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 31 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

FixedPointDecimal ( )
throw (
)
inline

Default (zero) initialization.

Definition at line 77 of file Decimal.h.

FixedPointDecimal ( Mantissa  mantissa)
throw (
)
inlineexplicit

Explicitly initializes the instance from the mantissa value.

Definition at line 83 of file Decimal.h.

FixedPointDecimal ( const FixedPointDecimal< MantissaType, ExponentType > &  other)
throw (
)
inline

Initializes the instance as a copy of the given one.

Definition at line 89 of file Decimal.h.

Member Function Documentation

Exponent exponent ( ) const
throw (
)
inline
Returns
exponent.

Definition at line 101 of file Decimal.h.

Mantissa mantissa ( ) const
throw (
)
inline
Returns
mantissa.

Definition at line 95 of file Decimal.h.

FixedPointDecimal& operator= ( const FixedPointDecimal< MantissaType, ExponentType > &  other)
throw (
)
inline

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

Definition at line 107 of file Decimal.h.

void serialize ( void *  addr) const
throw (
)
inline

Serialize to the given data buffer.

Definition at line 115 of file Decimal.h.

ONIXS_B3_UMDF_MD_NODISCARD 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: