OnixS CME Drop Copy Handler C++ library  5.7.1
API documentation
DecimalComparator Struct Reference

#include <OnixS/CME/DropCopy/Numeric.h>

Public Types

typedef bool(* CompareFunction) (const Decimal &, const Decimal &)
 

Public Member Functions

 DecimalComparator (const CompareFunction equalFunc, const CompareFunction nonEqualFunc, const CompareFunction lessFunc, const CompareFunction greaterFunc)
 
DecimalComparatoroperator= (const DecimalComparator &)
 
bool fixedPoint () const
 
bool genericDecimal () const
 

Public Attributes

const CompareFunction equal
 
const CompareFunction nonEqual
 
const CompareFunction less
 
const CompareFunction greater
 

Detailed Description

Comparator aggregate providing compare functions. Such functions can be generic (slower, but able to deal with any decimal) or fixed point based (faster, but assuming that all compating values have the same exponent).

Definition at line 342 of file Numeric.h.

Member Typedef Documentation

typedef bool(* CompareFunction) (const Decimal &, const Decimal &)

Comparing function signature.

Definition at line 345 of file Numeric.h.

Constructor & Destructor Documentation

DecimalComparator ( const CompareFunction  equalFunc,
const CompareFunction  nonEqualFunc,
const CompareFunction  lessFunc,
const CompareFunction  greaterFunc 
)
inline

Constructor.

Definition at line 354 of file Numeric.h.

Member Function Documentation

bool fixedPoint ( ) const
inline

Returns true if this instance is fixed point decimal comparator.

Definition at line 431 of file Numeric.h.

bool genericDecimal ( ) const
inline

Returns true if this instance is generic decimal comparator.

Definition at line 436 of file Numeric.h.

DecimalComparator& operator= ( const DecimalComparator )

Member Data Documentation

const CompareFunction equal

Comparing functions.

Definition at line 348 of file Numeric.h.

const CompareFunction greater

Definition at line 351 of file Numeric.h.

const CompareFunction less

Definition at line 350 of file Numeric.h.

const CompareFunction nonEqual

Definition at line 349 of file Numeric.h.


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