OnixS C++ CME MDP Streamlined Market Data Handler 1.2.0
API Documentation
Loading...
Searching...
No Matches
Decimal Class Reference

Public Types

typedef DecimalMantissa Mantissa
typedef DecimalExponent Exponent

Public Member Functions

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

Detailed Description

Definition at line 224 of file Decimal.h.

Member Typedef Documentation

◆ Exponent

Aliases exponent component type.

Definition at line 238 of file Decimal.h.

◆ Mantissa

Aliases mantissa component type.

Definition at line 233 of file Decimal.h.

Constructor & Destructor Documentation

◆ Decimal() [1/4]

Decimal ( )
inline

Default (zero) initialization.

Definition at line 241 of file Decimal.h.

◆ Decimal() [2/4]

Decimal ( Mantissa mantissa,
Exponent exponent )
inline

Explicitly initializes instance from its mantissa value.

Definition at line 248 of file Decimal.h.

◆ Decimal() [3/4]

Decimal ( const Decimal & other)
inline

Initializes instance as copy of the other one.

Definition at line 257 of file Decimal.h.

◆ Decimal() [4/4]

template<class OtherMantissa, class OtherExponent>
Decimal ( const FixedPointDecimal< OtherMantissa, OtherExponent > & other)
inline

Initializes instance from the fixed point decimal.

Definition at line 271 of file Decimal.h.

Member Function Documentation

◆ exponent()

Exponent exponent ( ) const
inline

Returns exponent of given decimal.

Definition at line 286 of file Decimal.h.

◆ mantissa()

Mantissa mantissa ( ) const
inline

Returns mantissa of given decimal.

Definition at line 280 of file Decimal.h.

◆ operator=() [1/2]

Decimal & operator= ( const Decimal & other)
inline

Re-initializes instance as copy of the other one.

Definition at line 293 of file Decimal.h.

◆ operator=() [2/2]

template<class OtherMantissa, class OtherExponent>
Decimal & operator= ( const FixedPointDecimal< OtherMantissa, OtherExponent > & other)
inline

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

Definition at line 310 of file Decimal.h.