44 template<
class MantissaType,
class ExponentType>
48 MantissaType mantissa_;
66 Size =
sizeof(Mantissa)
87 : mantissa_(other.mantissa_)
109 mantissa_ = other.mantissa_;
116 template<
class Mantissa,
class Exponent>
125 template <
class Mantissa,
class Exponent>
134 template<
class Mantissa,
class Exponent>
143 template<
class Mantissa,
class Exponent>
152 template<
class Mantissa,
class Exponent>
161 template<
class Mantissa,
class Exponent>
171 ONIXS_CBOECFE_PITCH_API
void decimalToStr(std::string&, Int64, Int32);
174 template <
class Mantissa,
class Exponent>
181 template<
class Mantissa,
class Exponent>
192 template<
class Mantissa,
class Exponent>
193 std::ostream& operator << (std::ostream& stream, const FixedPointDecimal<Mantissa, Exponent>& number)
195 return stream <<
toStr(number);
bool operator>(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
bool operator!=(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
bool operator<=(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
ONIXS_CBOECFE_PITCH_API void decimalToStr(std::string &, Int64, Int32)
FixedPointDecimal(const FixedPointDecimal &other) ONIXS_BATS_PITCH_NOTHROW
Initializes instance as copy of the other one.
ExponentType Exponent
Aliases exponent component type.
bool operator>=(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
bool operator<(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
FixedPointDecimal() ONIXS_BATS_PITCH_NOTHROW
Default (zero) initialization.
bool operator==(const PriceLevel &l, const PriceLevel &r) ONIXS_BATS_PITCH_NOTHROW
compare
#define ONIXS_BATS_PITCH_NOTHROW
Exponent exponent() const ONIXS_BATS_PITCH_NOTHROW
Returns exponent of given decimal.
Mantissa mantissa() const ONIXS_BATS_PITCH_NOTHROW
Returns mantissa of given decimal.
ONIXS_CBOECFE_PITCH_API void toStr(std::string &, SideIndicator::Enum)
Appends string presentation of object.
FixedPointDecimal(Mantissa mantissa) ONIXS_BATS_PITCH_NOTHROW
Explicitly initializes instance from its mantissa value.
MantissaType Mantissa
Aliases mantissa component type.