23 #include <OnixS/SURF/MarketData/Export.h> 28 namespace OnixS {
namespace SURF {
namespace MarketData {
38 Decimal(
unsigned char);
40 Decimal(
signed short);
41 Decimal(
unsigned short);
44 Decimal(
unsigned int);
46 Decimal(
signed long long);
47 Decimal(
unsigned long long);
49 Decimal(
float value,
size_t precision);
51 Decimal(
signed long long mantissa,
signed int exponent);
55 unsigned long long mantissaHigh,
56 unsigned long long mantissaLow,
60 Decimal(
const std::string&);
61 Decimal(
const char* buffer,
size_t bufferSize);
63 Decimal(
const Decimal& other);
65 signed long long mantissa()
const;
66 void mantissa(
signed long long);
68 signed int exponent()
const;
69 void exponent(
signed int);
71 bool toNumber(
signed char& converted)
const;
72 bool toNumber(
unsigned char& converted)
const;
74 bool toNumber(
signed short& converted)
const;
75 bool toNumber(
unsigned short& converted)
const;
77 bool toNumber(
signed int& converted)
const;
78 bool toNumber(
unsigned int& converted)
const;
80 bool toNumber(
signed long long& converted)
const;
81 bool toNumber(
unsigned long long& converted)
const;
83 bool toNumber(
float& converted)
const;
84 bool toNumber(
double& converted)
const;
86 operator signed int()
const;
87 operator unsigned int()
const;
88 operator signed long long()
const;
89 operator unsigned long long()
const;
90 operator double()
const;
92 bool operator==(
const Decimal& other)
const;
93 bool operator!=(
const Decimal& other)
const;
95 Decimal& operator=(
const Decimal& other);
97 Decimal& operator+=(
const Decimal& other);
98 Decimal& operator-=(
const Decimal& other);
100 Decimal& operator*=(
const Decimal& other);
101 Decimal& operator/=(
const Decimal& other);
103 std::string toString()
const;
108 unsigned long long* mantissaHigh,
109 unsigned long long* mantissaLow,
114 unsigned char bytes[16];
bool operator>=(Decimal, Decimal)
bool operator<=(Decimal, Decimal)
bool operator<(Decimal, Decimal)
Decimal operator*(Decimal, Decimal)
Decimal operator-(Decimal)
Decimal operator/(Decimal, Decimal)
Decimal operator+(Decimal)
std::ostream & operator<<(std::ostream &, const Decimal &)
bool operator>(Decimal, Decimal)