OnixS C++ B3 BOE Binary Order Entry  1.2.0
API Documentation
FixedPointDecimal< MantissaType, ExponentType > Class Template Reference

#include <OnixS/B3/BOE/messaging/Decimal.h>

Public Types

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

Public Member Functions

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

Detailed Description

template<class MantissaType, class ExponentType>
class OnixS::B3::BOE::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 206 of file Decimal.h.

typedef MantissaType Mantissa

Mantissa component type.

Definition at line 203 of file Decimal.h.

Member Enumeration Documentation

anonymous enum

Traits.

Enumerator
Size 

Size of the class in bytes.

Definition at line 209 of file Decimal.h.

Constructor & Destructor Documentation

constexpr FixedPointDecimal ( )
inlinenoexcept

Default (zero) initialization.

Definition at line 224 of file Decimal.h.

constexpr FixedPointDecimal ( Mantissa  mantissa)
inlineexplicitnoexcept

Explicitly initializes the instance from the mantissa value.

Definition at line 230 of file Decimal.h.

constexpr FixedPointDecimal ( const FixedPointDecimal< MantissaType, ExponentType > &  other)
inlinenoexcept

Initializes the instance as a copy of the given one.

Definition at line 236 of file Decimal.h.

Member Function Documentation

Exponent exponent ( ) const
inlinenoexcept
Returns
exponent.

Definition at line 248 of file Decimal.h.

Mantissa mantissa ( ) const
inlinenoexcept
Returns
mantissa.

Definition at line 242 of file Decimal.h.

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

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

Definition at line 254 of file Decimal.h.

void serialize ( void *  addr) const
inlinenoexcept

Serialize to the given data buffer.

Definition at line 262 of file Decimal.h.

std::string toString ( ) const
inline
Returns
a human-readable presentation.

Definition at line 217 of file Decimal.h.


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