Inheritance diagram for Exponent::Basics::CBool:
CBool is a wrapper class around a boolean type giving it CCountedObject functionality to a built in type
1.0.1 Fixed const correctness for the equality / inequality operators
1.0.2 Added inplace get as string function
Definition at line 39 of file CBool.hpp.
Exponent::Basics::CBool::CBool | ( | const bool | value = false |
) |
Construction
value | The value to default to |
virtual Exponent::Basics::CBool::~CBool | ( | ) | [virtual] |
Destruction
virtual void Exponent::Basics::CBool::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.
bool Exponent::Basics::CBool::getValue | ( | ) | const |
Get as a bool built in type
bool | The value of the boolean |
void Exponent::Basics::CBool::getValueAsString | ( | CString & | string | ) | const |
Get as a string
string | The string to store the value in (either "True" or "False") |
CString Exponent::Basics::CBool::getValueAsString | ( | ) | const |
bool Exponent::Basics::CBool::operator!= | ( | const bool | value | ) | const |
InEquality operator
value | The value to compare to |
bool | True if booleans are inequal, false otherwise |
bool Exponent::Basics::CBool::operator!= | ( | const CBool & | value | ) | const |
InEquality operator
value | The value to compare to |
bool | True if booleans are inequal, false otherwise |
CBool& Exponent::Basics::CBool::operator= | ( | const bool | value | ) |
Assignment operator
value | The value to store |
CBool& | A reference to this |
Assignment operator
value | The value to store |
CBool& | A reference to this |
bool Exponent::Basics::CBool::operator== | ( | const bool | value | ) | const |
Equality operator
value | The value to compare to |
bool | True if booleans are equal, false otherwise |
bool Exponent::Basics::CBool::operator== | ( | const CBool & | value | ) | const |
Equality operator
value | The value to compare to |
bool | True if booleans are equal, false otherwise |
void Exponent::Basics::CBool::setValue | ( | const bool | value | ) |
Set the value
value | The value to store |
void Exponent::Basics::CBool::setValue | ( | const CBool & | value | ) |
Set the value
value | The value to store |
bool Exponent::Basics::CBool::m_value [protected] |