OnixS C++ Tullett Prebon SURF Handler 1.6.1
API documentation
Loading...
Searching...
No Matches
Decimal Struct Reference

Public Member Functions

 Decimal ()
 Decimal (signed char)
 Decimal (unsigned char)
 Decimal (signed short)
 Decimal (unsigned short)
 Decimal (signed int)
 Decimal (unsigned int)
 Decimal (signed long long)
 Decimal (unsigned long long)
 Decimal (float value, size_t precision)
 Decimal (signed long long mantissa, signed int exponent)
 Decimal (signed char sign, unsigned long long mantissaHigh, unsigned long long mantissaLow, signed int exponent)
 Decimal (const std::string &)
 Decimal (const char *buffer, size_t bufferSize)
 Decimal (const Decimal &other)
signed long long mantissa () const
void mantissa (signed long long)
signed int exponent () const
void exponent (signed int)
bool toNumber (signed char &converted) const
bool toNumber (unsigned char &converted) const
bool toNumber (signed short &converted) const
bool toNumber (unsigned short &converted) const
bool toNumber (signed int &converted) const
bool toNumber (unsigned int &converted) const
bool toNumber (signed long long &converted) const
bool toNumber (unsigned long long &converted) const
bool toNumber (float &converted) const
bool toNumber (double &converted) const
 operator signed int () const
 operator unsigned int () const
 operator signed long long () const
 operator unsigned long long () const
 operator double () const
bool operator== (const Decimal &other) const
bool operator!= (const Decimal &other) const
Decimaloperator= (const Decimal &other)
Decimaloperator+= (const Decimal &other)
Decimaloperator-= (const Decimal &other)
Decimaloperator*= (const Decimal &other)
Decimaloperator/= (const Decimal &other)
std::string toString () const

Detailed Description

Decimal representation.

Definition at line 33 of file Decimal.h.

Constructor & Destructor Documentation

◆ Decimal() [1/15]

Decimal ( )

◆ Decimal() [2/15]

Decimal ( signed char )

◆ Decimal() [3/15]

Decimal ( unsigned char )

◆ Decimal() [4/15]

Decimal ( signed short )

◆ Decimal() [5/15]

Decimal ( unsigned short )

◆ Decimal() [6/15]

Decimal ( signed int )

◆ Decimal() [7/15]

Decimal ( unsigned int )

◆ Decimal() [8/15]

Decimal ( signed long long )

◆ Decimal() [9/15]

Decimal ( unsigned long long )

◆ Decimal() [10/15]

Decimal ( float value,
size_t precision )

◆ Decimal() [11/15]

Decimal ( signed long long mantissa,
signed int exponent )

◆ Decimal() [12/15]

Decimal ( signed char sign,
unsigned long long mantissaHigh,
unsigned long long mantissaLow,
signed int exponent )

◆ Decimal() [13/15]

Decimal ( const std::string & )

◆ Decimal() [14/15]

Decimal ( const char * buffer,
size_t bufferSize )

◆ Decimal() [15/15]

Decimal ( const Decimal & other)

Member Function Documentation

◆ exponent() [1/2]

signed int exponent ( ) const

◆ exponent() [2/2]

void exponent ( signed int )

◆ mantissa() [1/2]

signed long long mantissa ( ) const

◆ mantissa() [2/2]

void mantissa ( signed long long )

◆ operator double()

operator double ( ) const

◆ operator signed int()

operator signed int ( ) const

◆ operator signed long long()

operator signed long long ( ) const

◆ operator unsigned int()

operator unsigned int ( ) const

◆ operator unsigned long long()

operator unsigned long long ( ) const

◆ operator!=()

bool operator!= ( const Decimal & other) const

◆ operator*=()

Decimal & operator*= ( const Decimal & other)

◆ operator+=()

Decimal & operator+= ( const Decimal & other)

◆ operator-=()

Decimal & operator-= ( const Decimal & other)

◆ operator/=()

Decimal & operator/= ( const Decimal & other)

◆ operator=()

Decimal & operator= ( const Decimal & other)

◆ operator==()

bool operator== ( const Decimal & other) const

◆ toNumber() [1/10]

bool toNumber ( double & converted) const

◆ toNumber() [2/10]

bool toNumber ( float & converted) const

◆ toNumber() [3/10]

bool toNumber ( signed char & converted) const

◆ toNumber() [4/10]

bool toNumber ( signed int & converted) const

◆ toNumber() [5/10]

bool toNumber ( signed long long & converted) const

◆ toNumber() [6/10]

bool toNumber ( signed short & converted) const

◆ toNumber() [7/10]

bool toNumber ( unsigned char & converted) const

◆ toNumber() [8/10]

bool toNumber ( unsigned int & converted) const

◆ toNumber() [9/10]

bool toNumber ( unsigned long long & converted) const

◆ toNumber() [10/10]

bool toNumber ( unsigned short & converted) const

◆ toString()

std::string toString ( ) const