OnixS C++ CME MDP Premium Market Data Handler  5.8.3
API Documentation
Decimal Class Reference

#include <OnixS/CME/MDH/Decimal.h>

Public Types

typedef DecimalMantissa Mantissa
 
typedef DecimalExponent Exponent
 

Public Member Functions

 Decimal ()
 
 Decimal (Mantissa mantissa, Exponent exponent)
 
 Decimal (const Decimal &other)
 
template<class AMantissa , class AExponent >
 Decimal (const FixedPointDecimal< AMantissa, AExponent > &other)
 
Mantissa mantissa () const
 
Exponent exponent () const
 
Decimaloperator= (const Decimal &other)
 
template<class AMantissa , class AExponent >
Decimaloperator= (const FixedPointDecimal< AMantissa, AExponent > &other)
 

Detailed Description

Definition at line 136 of file Decimal.h.

Member Typedef Documentation

Aliases exponent component type.

Definition at line 143 of file Decimal.h.

Aliases mantissa component type.

Definition at line 140 of file Decimal.h.

Constructor & Destructor Documentation

Decimal ( )
inline

Default (zero) initialization.

Definition at line 146 of file Decimal.h.

Decimal ( Mantissa  mantissa,
Exponent  exponent 
)
inline

Explicitly initializes instance from its mantissa value.

Definition at line 153 of file Decimal.h.

Decimal ( const Decimal other)
inline

Initializes instance as copy of the other one.

Definition at line 160 of file Decimal.h.

Decimal ( const FixedPointDecimal< AMantissa, AExponent > &  other)
inline

Initializes instance from the fixed point decimal.

Definition at line 169 of file Decimal.h.

Member Function Documentation

Exponent exponent ( ) const
inline

Returns exponent of given decimal.

Definition at line 182 of file Decimal.h.

Mantissa mantissa ( ) const
inline

Returns mantissa of given decimal.

Definition at line 176 of file Decimal.h.

Decimal& operator= ( const Decimal other)
inline

Re-initializes instance as copy of the other one.

Definition at line 188 of file Decimal.h.

Decimal& operator= ( const FixedPointDecimal< AMantissa, AExponent > &  other)
inline

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

Definition at line 199 of file Decimal.h.


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