OnixS C++ CME Market Data Handler  4.8.0.10
API documentation
Decimal Class Reference

#include <Decimal.h>

Public Types

typedef Int64 Mantissa
 
typedef Int32 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
 
Decimal & operator= (const Decimal &other)
 
template<class OtherMantissa , class OtherExponent >
Decimal & operator= (const FixedPointDecimal< OtherMantissa, OtherExponent > &other)
 

Detailed Description

Definition at line 220 of file Decimal.h.

Member Typedef Documentation

typedef Int32 Exponent

Aliases exponent component type.

Definition at line 227 of file Decimal.h.

typedef Int64 Mantissa

Aliases mantissa component type.

Definition at line 224 of file Decimal.h.

Constructor & Destructor Documentation

Decimal ( )
inline

Default (zero) initialization.

Definition at line 230 of file Decimal.h.

Decimal ( Mantissa  mantissa,
Exponent  exponent 
)
inline

Explicitly initializes instance from its mantissa value.

Definition at line 237 of file Decimal.h.

Decimal ( const Decimal &  other)
inline

Initializes instance as copy of the other one.

Definition at line 246 of file Decimal.h.

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

Initializes instance from the fixed point decimal.

Definition at line 260 of file Decimal.h.

Member Function Documentation

Exponent exponent ( ) const
inline

Returns exponent of given decimal.

Definition at line 275 of file Decimal.h.

Mantissa mantissa ( ) const
inline

Returns mantissa of given decimal.

Definition at line 269 of file Decimal.h.

Decimal& operator= ( const Decimal &  other)
inline

Re-initializes instance as copy of the other one.

Definition at line 282 of file Decimal.h.

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

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

Definition at line 299 of file Decimal.h.


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