Inheritance diagram for Exponent::Basics::CDouble:
Basic wrapper around a built in double type giving it CCountedObject functionality
1.0.1 Made the constructor default
Definition at line 38 of file CDouble.hpp.
Exponent::Basics::CDouble::CDouble | ( | const double | value = 0.0 |
) |
Construction
value | The value to store |
virtual Exponent::Basics::CDouble::~CDouble | ( | ) | [virtual] |
Destruction
virtual void Exponent::Basics::CDouble::getObjectDescription | ( | char * | string, | |
const long | size | |||
) | const [virtual] |
Get a description of the object
string | On return is filled with the description | |
size | The size of the stirng |
Reimplemented from Exponent::Basics::CCountedObject.
double Exponent::Basics::CDouble::getValue | ( | ) | const |
Get the value
double | The value |
CString Exponent::Basics::CDouble::getValueAsString | ( | const long | decimalPlaces = 2 |
) | const |
Get as a string
decimalPlaces | The number of decimal places precision required |
CString | The double as a string |
CDouble& Exponent::Basics::CDouble::operator * | ( | const double | value | ) |
Multiplication operator
value | The value to multiply with this |
CDouble& | A reference to this |
Multiplication operator
value | The value to multiply with this |
CDouble& | A reference to this |
bool Exponent::Basics::CDouble::operator! | ( | ) |
! operator
bool | True if value == 0, false otherwise |
bool Exponent::Basics::CDouble::operator!= | ( | const double | value | ) |
InEquality operator
value | The value to compare to |
bool | True if values are inequal, false otherwise |
bool Exponent::Basics::CDouble::operator!= | ( | const CDouble & | value | ) |
InEquality operator
value | The value to compare to |
bool | True if values are inequal, false otherwise |
CDouble& Exponent::Basics::CDouble::operator+ | ( | const double | value | ) |
Addition operator
value | The value to add to this |
CDouble& | A reference to this |
Addition operator
value | The value to add to this |
CDouble& | A reference to this |
CDouble& Exponent::Basics::CDouble::operator+= | ( | const double | value | ) |
Plus equals operator
value | The value to add to this |
CDouble& | A reference to this |
Plus equals operator
value | The value to add to this |
CDouble& | A reference to this |
CDouble& Exponent::Basics::CDouble::operator- | ( | const double | value | ) |
Subtraction operator
value | The value to subtract from this |
CDouble& | A reference to this |
Subtraction operator
value | The value to subtract from this |
CDouble& | A reference to this |
CDouble& Exponent::Basics::CDouble::operator-= | ( | const double | value | ) |
Neg equals operator
value | The value to subtract from this |
CDouble& | A reference to this |
Neg equals operator
value | The value to subtract from this |
CDouble& | A reference to this |
CDouble& Exponent::Basics::CDouble::operator/ | ( | const double | value | ) |
Division operator
value | The value to divide with this |
CDouble& | A reference to this |
Division operator
value | The value to divide with this |
CDouble& | A reference to this |
CDouble& Exponent::Basics::CDouble::operator= | ( | const double | value | ) |
Assignment operator
value | The value to store |
CDouble& | A reference to this |
Assignment operator
value | The value to store |
CDouble& | A reference to this |
bool Exponent::Basics::CDouble::operator== | ( | const double | value | ) |
Equality operator
value | The value to compare to |
bool | True if values are equal, false otherwise |
bool Exponent::Basics::CDouble::operator== | ( | const CDouble & | value | ) |
Equality operator
value | The value to compare to |
bool | True if values are equal, false otherwise |
void Exponent::Basics::CDouble::setValue | ( | const double | value | ) |
Set the value
value | The value to store |
void Exponent::Basics::CDouble::setValue | ( | const CDouble & | value | ) |
Set the value
value | The value to store |
double Exponent::Basics::CDouble::m_value [protected] |
The value stored
Definition at line 237 of file CDouble.hpp.