#include <Bool.hpp>
Public Member Functions | |
| Bool () | |
| Create an Bool object initialized to false. | |
| Bool (bool val) | |
| Create an Bool object initialized to a given boolean value. | |
| Bool (const Bool &arg) | |
| Copy constructor. | |
| Bool & | operator= (const Bool &arg) |
| Assignment operator. | |
| bool | operator== (const bool arg) const |
| Equality operator. | |
| bool | operator== (const Bool &arg) const |
| Equality operator. | |
| bool | operator!= (const bool arg) const |
| Inequality operator. | |
| bool | operator!= (const Bool &arg) const |
| Inequality operator. | |
| operator bool () const | |
| bool | operator! () const |
| Negation operator. | |
| String | toString () const |
| void | writeObject (std::ostream &ostrm) const |
| Write this object to an output stream. | |
| void | readObject (std::istream &istrm) |
| Read this object from an input stream. | |
Private Member Functions | |
| Bool (const void *) | |
| Bool (void *) | |
| Bool (volatile const void *) | |
| Bool (volatile void *) | |
Private Attributes | |
| bool | m_val |
Friends | |
| bool | operator< (const Bool &b1, const Bool &b2) |
| Less than operator (friend function). | |
| bool | operator!= (bool b1, Bool b2) |
| Not equal operator (friend function). | |
It's not meant to be a replacement for bool. Use it if you need a type that supports toString(), readObject(), or writeObject(). It's also useful for preventing implicit conversion of char*->bool. Using it can make overloading functions safer (ie it'll be less likely the compiler will pick the wrong overload.)
Definition at line 55 of file Bool.hpp.
|
|
Create an Bool object initialized to false.
|
|
|
Create an Bool object initialized to a given boolean value.
|
|
|
Copy constructor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Negation operator.
|
|
|
Inequality operator.
Definition at line 106 of file Bool.hpp. References m_val. |
|
|
Inequality operator.
|
|
|
Assignment operator.
Definition at line 78 of file Bool.hpp. References m_val. |
|
|
Equality operator.
Definition at line 92 of file Bool.hpp. References m_val. |
|
|
Equality operator.
|
|
|
Read this object from an input stream.
Referenced by BLOCXX_NAMESPACE::BinarySerialization::readBool(). |
|
|
Definition at line 71 of file Bool.cpp. References m_val. Referenced by BLOCXX_NAMESPACE::StringBuffer::operator+=(). |
|
|
Write this object to an output stream.
Referenced by BLOCXX_NAMESPACE::BinarySerialization::writeBool(). |
|
||||||||||||
|
Not equal operator (friend function).
|
|
||||||||||||
|
Less than operator (friend function).
|
|
|
Definition at line 158 of file Bool.hpp. Referenced by operator!=(), operator=(), operator==(), and toString(). |
1.4.6