OnixS C++ Fenics UST BIMP Market Data Handler  1.1.0
API documentation
FixedPointDecimal< MantissaType, ExponentType > Class Template Reference

#include <OnixS/FenicsUST/MarketData/Bimp/Decimal.h>

Public Types

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

Public Member Functions

 FixedPointDecimal () ONIXS_FENICSUST_BIMP_NOTHROW
 
 FixedPointDecimal (Mantissa mantissa) ONIXS_FENICSUST_BIMP_NOTHROW
 
 FixedPointDecimal (const FixedPointDecimal &other) ONIXS_FENICSUST_BIMP_NOTHROW
 
Mantissa mantissa () const ONIXS_FENICSUST_BIMP_NOTHROW
 
Exponent exponent () const ONIXS_FENICSUST_BIMP_NOTHROW
 
FixedPointDecimaloperator= (const FixedPointDecimal &other) ONIXS_FENICSUST_BIMP_NOTHROW
 

Detailed Description

template<class MantissaType, class ExponentType>
class OnixS::FenicsUST::MarketData::Bimp::FixedPointDecimal< MantissaType, ExponentType >

Represents real number with constant exponent.

BOE Platform currently operates prices and scaling factors as real numbers with constant exponent. This class implements concept of fixed point decimal and lets to dramatically improve performance of book-related operations.

Definition at line 45 of file Decimal.h.

Member Typedef Documentation

typedef ExponentType Exponent

Aliases exponent component type.

Definition at line 55 of file Decimal.h.

typedef MantissaType Mantissa

Aliases mantissa component type.

Definition at line 52 of file Decimal.h.

Member Enumeration Documentation

anonymous enum

A few traits.

Enumerator
Size 

Size of class in bytes.

                    Instantiations of given class are used
                    while manipulating binary messages. Regular
                    composites expose given characteristics so
                    as this template class does.  

Definition at line 58 of file Decimal.h.

Constructor & Destructor Documentation

FixedPointDecimal ( )
inline

Default (zero) initialization.

Definition at line 70 of file Decimal.h.

FixedPointDecimal ( Mantissa  mantissa)
inlineexplicit

Explicitly initializes instance from its mantissa value.

Definition at line 78 of file Decimal.h.

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

Initializes instance as copy of the other one.

Definition at line 85 of file Decimal.h.

Member Function Documentation

Exponent exponent ( ) const
inline

Returns exponent of given decimal.

Definition at line 99 of file Decimal.h.

Mantissa mantissa ( ) const
inline

Returns mantissa of given decimal.

Definition at line 92 of file Decimal.h.

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

Re-initializes instance as copy of the other one.

Definition at line 106 of file Decimal.h.


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