#include <tntdb/decimal.h>

Public Types

typedef long LongType
typedef unsigned long UnsignedLongType

Public Member Functions

 Decimal ()
 Decimal (long double value)
 Decimal (const std::string &value)
 Decimal (long mantissa, short exponent)
const std::string & mantissa () const
short exponent () const
bool negative () const
bool isInfinity (bool positiveInfinity=true) const
bool isPositiveInfinity () const
bool isNegativeInfinity () const
bool isNaN () const
bool isZero () const
void setDouble (long double value)
long double getDouble () const
void setInteger (short l, short exponent=0)
void setInteger (int l, short exponent=0)
void setInteger (long l, short exponent=0)
void setInteger (long long l, short exponent=0)
void setInteger (unsigned short l, short exponent=0)
void setInteger (unsigned int l, short exponent=0)
void setInteger (unsigned long l, short exponent=0)
void setInteger (unsigned long long l, short exponent=0)
template<typename IntType >
IntType getInteger () const
std::string toString () const
std::string toStringSci () const
std::string toStringFix () const
Decimal operator- () const
bool operator== (const Decimal &other) const
bool operator!= (const Decimal &other) const
bool operator< (const Decimal &other) const
bool operator> (const Decimal &other) const
bool operator<= (const Decimal &other) const
bool operator>= (const Decimal &other) const

Static Public Member Functions

static Decimal infinity ()
static Decimal nan ()

Friends

class Parser

Member Typedef Documentation

typedef unsigned long tntdb::Decimal::UnsignedLongType

Constructor & Destructor Documentation

tntdb::Decimal::Decimal ( )
tntdb::Decimal::Decimal ( long double  value)
inlineexplicit
tntdb::Decimal::Decimal ( const std::string &  value)
explicit
tntdb::Decimal::Decimal ( long  mantissa,
short  exponent 
)
inlineexplicit

Member Function Documentation

short tntdb::Decimal::exponent ( ) const
inline
long double tntdb::Decimal::getDouble ( ) const
template<typename IntType >
IntType tntdb::Decimal::getInteger ( ) const
inline
static Decimal tntdb::Decimal::infinity ( )
inlinestatic
bool tntdb::Decimal::isInfinity ( bool  positiveInfinity = true) const
inline
bool tntdb::Decimal::isNaN ( ) const
inline
bool tntdb::Decimal::isNegativeInfinity ( ) const
inline
bool tntdb::Decimal::isPositiveInfinity ( ) const
inline
bool tntdb::Decimal::isZero ( ) const
inline
const std::string& tntdb::Decimal::mantissa ( ) const
inline
static Decimal tntdb::Decimal::nan ( )
inlinestatic
bool tntdb::Decimal::negative ( ) const
inline
bool tntdb::Decimal::operator!= ( const Decimal other) const
inline
Decimal tntdb::Decimal::operator- ( ) const
inline
bool tntdb::Decimal::operator< ( const Decimal other) const
bool tntdb::Decimal::operator<= ( const Decimal other) const
inline
bool tntdb::Decimal::operator== ( const Decimal other) const
inline
bool tntdb::Decimal::operator> ( const Decimal other) const
inline
bool tntdb::Decimal::operator>= ( const Decimal other) const
inline
void tntdb::Decimal::setDouble ( long double  value)
void tntdb::Decimal::setInteger ( short  l,
short  exponent = 0 
)
inline
void tntdb::Decimal::setInteger ( int  l,
short  exponent = 0 
)
inline
void tntdb::Decimal::setInteger ( long  l,
short  exponent = 0 
)
inline
void tntdb::Decimal::setInteger ( long long  l,
short  exponent = 0 
)
inline
void tntdb::Decimal::setInteger ( unsigned short  l,
short  exponent = 0 
)
inline
void tntdb::Decimal::setInteger ( unsigned int  l,
short  exponent = 0 
)
inline
void tntdb::Decimal::setInteger ( unsigned long  l,
short  exponent = 0 
)
inline
void tntdb::Decimal::setInteger ( unsigned long long  l,
short  exponent = 0 
)
inline
std::string tntdb::Decimal::toString ( ) const
std::string tntdb::Decimal::toStringFix ( ) const
std::string tntdb::Decimal::toStringSci ( ) const

Friends And Related Function Documentation

friend class Parser
friend

The documentation for this class was generated from the following file: