44 template<
class MantissaType,
class ExponentType>
48 MantissaType mantissa_;
87 : mantissa_(other.mantissa_)
91 #if defined(ONIXS_EUROTLX_GTP_COMPILER_CXX_RVALUE_REFERENCES) && ONIXS_EUROTLX_GTP_COMPILER_CXX_RVALUE_REFERENCES 95 : mantissa_(std::move(other.mantissa_))
107 mantissa_ = std::move(other.mantissa_);
131 mantissa_ = other.mantissa_;
138 template<
class Mantissa,
class Exponent>
147 template <
class Mantissa,
class Exponent>
156 template<
class Mantissa,
class Exponent>
165 template<
class Mantissa,
class Exponent>
174 template<
class Mantissa,
class Exponent>
183 template<
class Mantissa,
class Exponent>
193 ONIXS_EUROTLX_GTP_API
void decimalToStr(std::string&, Int64, Int32);
196 template <
class Mantissa,
class Exponent>
203 template<
class Mantissa,
class Exponent>
214 template<
class Mantissa,
class Exponent>
215 std::ostream& operator << (std::ostream& stream, const FixedPointDecimal<Mantissa, Exponent>& number)
217 return stream <<
toStr(number);
Exponent exponent() const ONIXS_EUROTLX_GTP_NOTHROW
Returns exponent of given decimal.
ONIXS_EUROTLX_GTP_API void decimalToStr(std::string &, Int64, Int32)
#define ONIXS_EUROTLX_GTP_NOTHROW
bool operator>(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
Mantissa mantissa() const ONIXS_EUROTLX_GTP_NOTHROW
Returns mantissa of given decimal.
bool operator==(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
FixedPointDecimal() ONIXS_EUROTLX_GTP_NOTHROW
Default (zero) initialization.
bool operator!=(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
ExponentType Exponent
Aliases exponent component type.
MantissaType Mantissa
Aliases mantissa component type.
FixedPointDecimal(Mantissa mantissa) ONIXS_EUROTLX_GTP_NOTHROW
Explicitly initializes instance from its mantissa value.
FixedPointDecimal(const FixedPointDecimal &other) ONIXS_EUROTLX_GTP_NOTHROW
Initializes instance as copy of the other one.
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_EUROTLX_GTP_API void toStr(std::string &, EventCode::Enum)
Appends string presentation of object.
bool operator<=(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.