OnixS C++ CME iLink 3 Binary Order Entry Handler  1.18.9
API Documentation
Decimal.Operations.h File Reference

Go to the source code of this file.

Namespaces

 OnixS
 
 OnixS::CME
 
 OnixS::CME::iLink3
 
 OnixS::CME::iLink3::Messaging
 

Typedefs

typedef FloatingPointDecimal< Int64, Int32 > Decimal
 

Functions

bool quantize (const Decimal &operand, Int32 exponent, Decimal &quantized)
 
Decimal quantize (const Decimal &operand, Int32 exponent)
 
template<class MantissaType >
MantissaType quantizedMantissa (const Decimal &operand, Int32 exponent)
 
template<class MantissaType , class ExponentType >
void convert (FixedPointDecimal< MantissaType, ExponentType > &res, const Decimal &number)
 
template<class MantissaType , class ExponentType >
void convert (FloatingPointDecimal< MantissaType, ExponentType > &res, const Decimal &number)
 
template<class DecimalT >
EnableIf< details::IsDecimal< DecimalT >::value, DecimalT >::type convert (const Decimal &number)
 
bool fromStr (Decimal &, const Char *, size_t) noexcept
 
bool fromStr (Decimal &value, const std::string &str) noexcept
 
template<class Mantissa , class Exponent >
void toStr (std::string &str, const FloatingPointDecimal< Mantissa, Exponent > &number)
 
template<class Mantissa , class Exponent >
std::ostream & operator<< (std::ostream &stream, const FloatingPointDecimal< Mantissa, Exponent > &value)
 
template<class Mantissa , class Exponent >
void toStr (std::string &str, const FixedPointDecimal< Mantissa, Exponent > &number)
 
template<class Mantissa , class Exponent >
std::string toStr (const FloatingPointDecimal< Mantissa, Exponent > &number)
 
template<class Mantissa , class Exponent >
std::string toStr (const FixedPointDecimal< Mantissa, Exponent > &number)
 
std::ostream & operator<< (std::ostream &stream, const Decimal &value)
 
template<class Mantissa , class Exponent >
std::ostream & operator<< (std::ostream &stream, const FixedPointDecimal< Mantissa, Exponent > &value)
 
template<class Mantissa , class Exponent >
bool operator== (const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
 
template<class Mantissa , class Exponent >
bool operator!= (const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
 
template<class Mantissa , class Exponent >
bool operator< (const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
 
template<class Mantissa , class Exponent >
bool operator> (const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
 
template<class Mantissa , class Exponent >
bool operator<= (const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
 
template<class Mantissa , class Exponent >
bool operator>= (const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
 
template<class Decimal1 , class Decimal2 >
EnableIf< details::AreBothDecimals< Decimal1, Decimal2 >::value, bool >::type operator== (const Decimal1 &left, const Decimal2 &right)
 
template<class Decimal1 , class Decimal2 >
EnableIf< details::AreBothDecimals< Decimal1, Decimal2 >::value, bool >::type operator!= (const Decimal1 &left, const Decimal2 &right)
 
template<class Decimal1 , class Decimal2 >
EnableIf< details::AreBothDecimals< Decimal1, Decimal2 >::value, bool >::type operator> (const Decimal1 &left, const Decimal2 &right)
 
template<class Decimal1 , class Decimal2 >
EnableIf< details::AreBothDecimals< Decimal1, Decimal2 >::value, bool >::type operator>= (const Decimal1 &left, const Decimal2 &right)
 
template<class Decimal1 , class Decimal2 >
EnableIf< details::AreBothDecimals< Decimal1, Decimal2 >::value, bool >::type operator< (const Decimal1 &left, const Decimal2 &right)
 
template<class Decimal1 , class Decimal2 >
EnableIf< details::AreBothDecimals< Decimal1, Decimal2 >::value, bool >::type operator<= (const Decimal1 &left, const Decimal2 &right)