OnixS C++ ICE Binary Order Entry Handler 1.0.0
API Documentation
Loading...
Searching...
No Matches
Decimal.Operations.h File Reference

Go to the source code of this file.

Namespaces

namespace  OnixS
namespace  OnixS::ICE
namespace  OnixS::ICE::BOE
namespace  OnixS::ICE::BOE::Messaging

Typedefs

typedef FloatingPointDecimal< Int64, Int32Decimal

Functions

void throwCannotQuantizeOrConvert ()
constexpr bool isNull (const Decimal &) noexcept
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>
std::enable_if< details::IsDecimal< DecimalT >::value, DecimalT >::type convert (const Decimal &number)
bool decimalEqual (const Decimal &left, const Decimal &right) noexcept
bool operator== (const Decimal &left, const Decimal &right) noexcept
bool operator!= (const Decimal &left, const Decimal &right)
bool decimalLess (const Decimal &left, const Decimal &right) noexcept
bool operator< (const Decimal &left, const Decimal &right) noexcept
bool operator<= (const Decimal &left, const Decimal &right)
bool operator> (const Decimal &left, const Decimal &right)
bool operator>= (const Decimal &left, const Decimal &right)
void decimalToStr (std::string &, Int64, Int32)
size_t toStr (const Decimal &, Char *buf, size_t size)
bool fromStr (Decimal &, const Char *, size_t) noexcept
bool fromStr (Decimal &value, const std::string &str) noexcept
void toStr (std::string &str, const Decimal &number)
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>
std::enable_if< details::AreBothDecimals< Decimal1, Decimal2 >::value, bool >::type operator== (const Decimal1 &left, const Decimal2 &right)
template<class Decimal1, class Decimal2>
std::enable_if< details::AreBothDecimals< Decimal1, Decimal2 >::value, bool >::type operator!= (const Decimal1 &left, const Decimal2 &right)
template<class Decimal1, class Decimal2>
std::enable_if< details::AreBothDecimals< Decimal1, Decimal2 >::value, bool >::type operator> (const Decimal1 &left, const Decimal2 &right)
template<class Decimal1, class Decimal2>
std::enable_if< details::AreBothDecimals< Decimal1, Decimal2 >::value, bool >::type operator>= (const Decimal1 &left, const Decimal2 &right)
template<class Decimal1, class Decimal2>
std::enable_if< details::AreBothDecimals< Decimal1, Decimal2 >::value, bool >::type operator< (const Decimal1 &left, const Decimal2 &right)
template<class Decimal1, class Decimal2>
std::enable_if< details::AreBothDecimals< Decimal1, Decimal2 >::value, bool >::type operator<= (const Decimal1 &left, const Decimal2 &right)