sipxportlib
Version 3.3
|
#include <UtlInt.h>
Public Member Functions | |
UtlInt (int initialValue=0) | |
UtlInt (const UtlInt &rhs) | |
virtual | ~UtlInt () |
UtlCopyableContainable * | clone () const |
Make an off the heap copy of this object. More... | |
UtlInt & | operator++ () |
UtlInt | operator++ (int) |
UtlInt & | operator-- () |
UtlInt | operator-- (int) |
UtlInt & | operator= (const UtlInt &rhs) |
operator int () | |
int | setValue (int iValue) |
int | getValue () const |
virtual unsigned | hash () const |
virtual UtlContainableType | getContainableType () const |
virtual int | compareTo (UtlContainable const *) const |
virtual UtlBoolean | isEqual (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... | |
Static Public Member Functions | |
static void | toString (UtlString &stringInt, int valueToStringify) |
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... | |
Static Public Attributes | |
static const UtlContainableType | TYPE = "UtlInt" |
Static Public Attributes inherited from UtlCopyableContainable | |
static const UtlContainableType | TYPE = "UtlCopyableContainable" |
Static Public Attributes inherited from UtlContainable | |
static const UtlContainableType | TYPE = "UtlContainable" |
UtlInt is a UtlContainable wrapper for an int.
UtlInt | ( | int | initialValue = 0 | ) |
< Class type used for runtime checking Constructor accepting an optional default value.
|
virtual |
Destructor
|
virtual |
Make an off the heap copy of this object.
< Class type used for runtime checking
Implements UtlCopyableContainable.
UtlInt & operator++ | ( | ) |
UtlInt operator++ | ( | int | ) |
UtlInt & operator-- | ( | ) |
UtlInt operator-- | ( | int | ) |
|
inline |
|
static |
Convert the given int to a string representation
int setValue | ( | int | iValue | ) |
Set a new int value for this object.
int getValue | ( | ) | const |
Get the int 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 this object to another like-object. Results for comparing to a non-like object are undefined.
Implements UtlContainable.
|
virtual |
Test this object to another like-object for equality. This method returns false if unlike-objects are specified.
Reimplemented from 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 |