#include <OWBI1_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) |
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 53 of file OWBI1_Bool.hpp.
|
Create an Bool object initialized to false.
Definition at line 60 of file OWBI1_Bool.hpp. |
|
Create an Bool object initialized to a given boolean value.
Definition at line 65 of file OWBI1_Bool.hpp. |
|
Copy constructor.
Definition at line 70 of file OWBI1_Bool.hpp. |
|
|
|
|
|
|
|
|
|
Definition at line 108 of file OWBI1_Bool.hpp. |
|
Negation operator.
Definition at line 113 of file OWBI1_Bool.hpp. |
|
Inequality operator.
Definition at line 104 of file OWBI1_Bool.hpp. References m_val. |
|
Inequality operator.
Definition at line 97 of file OWBI1_Bool.hpp. |
|
Assignment operator.
Definition at line 76 of file OWBI1_Bool.hpp. References m_val. |
|
Equality operator.
Definition at line 90 of file OWBI1_Bool.hpp. References m_val. |
|
Equality operator.
Definition at line 83 of file OWBI1_Bool.hpp. |
|
Read this object from an input stream.
|
|
Definition at line 70 of file OWBI1_Bool.cpp. References m_val. Referenced by OWBI1::StringBuffer::operator+=(). |
|
Write this object to an output stream.
|
|
Definition at line 139 of file OWBI1_Bool.hpp. |
|
Less than operator (friend function).
Definition at line 135 of file OWBI1_Bool.hpp. |
|
Definition at line 150 of file OWBI1_Bool.hpp. Referenced by operator!=(), operator=(), operator==(), and toString(). |