sipxportlib
Version 3.3
|
#include <UtlBool.h>
Public Member Functions | |
UtlBool (bool bValue) | |
virtual | ~UtlBool () |
virtual UtlCopyableContainable * | clone () const |
Make a copy of this. More... | |
void | setValue (bool bValue) |
bool | getValue () const |
virtual unsigned | hash () const |
virtual UtlContainableType | getContainableType () const |
virtual int | compareTo (UtlContainable const *) const |
virtual UtlBoolean | isInstanceOf (const UtlContainableType type) const |
Determine if this object is a derivative of the specified UtlContainableType. More... | |
Public Member Functions inherited from UtlCopyableContainable | |
UtlCopyableContainable () | |
virtual | ~UtlCopyableContainable () |
Public Member Functions inherited from UtlContainable | |
virtual | ~UtlContainable () |
unsigned | directHash () const |
Provides a hash function that uses the object pointer as the hash value. More... | |
virtual UtlBoolean | isEqual (UtlContainable const *) const |
Test this object to another object for equality. More... | |
Static Public Attributes | |
static const UtlContainableType | TYPE = "UtlBool" |
Static Public Attributes inherited from UtlCopyableContainable | |
static const UtlContainableType | TYPE = "UtlCopyableContainable" |
Static Public Attributes inherited from UtlContainable | |
static const UtlContainableType | TYPE = "UtlContainable" |
Additional Inherited Members | |
Static Public Member Functions inherited from UtlContainable | |
static unsigned | stringHash (char const *value) |
Provides a hash function appropriate for null-terminated string values. More... | |
static UtlBoolean | areSameTypes (const UtlContainableType type1, const UtlContainableType type2) |
Are UtlContainable types the same. More... | |
UtlBool is a UtlContainable wrapper for a bool.
UtlBool | ( | bool | bValue | ) |
< Class type used for runtime checking Constructor
|
virtual |
Destructor
|
virtual |
Make a copy of this.
Implements UtlCopyableContainable.
void setValue | ( | bool | bValue | ) |
Set a new bool value for this object.
bool getValue | ( | ) | const |
Get the bool wrapped by this object.
|
virtual |
Calculate a unique hash code for this object. If the equals operator returns true for another object, then both of those objects must return the same hashcode.
Implements UtlContainable.
|
virtual |
Get the ContainableType for a UtlContainable derived class.
Reimplemented from UtlCopyableContainable.
|
virtual |
Compare the this object to another like-objects. Results for designating a non-like object are undefined.
Implements UtlContainable.
|
virtual |
Determine if this object is a derivative of the specified UtlContainableType.
Determine if this object is an instance of the designated runtime class identifer or one of its derivatives. For example:
if (pMyObject->isInstanceOf(UtlInt::TYPE)) { ... }
If you want to determine if this object is exactly the same type as the given type (i.e. not a deriviative) use the following:
if(myObject->getContainableType() == UtlInt::TYPE) { ... }
Reimplemented from UtlCopyableContainable.
|
static |