sipxportlib  Version 3.3
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
UtlLongLongInt Class Reference

#include <UtlLongLongInt.h>

Inheritance diagram for UtlLongLongInt:
Inheritance graph
[legend]
Collaboration diagram for UtlLongLongInt:
Collaboration graph
[legend]

Public Member Functions

 UtlLongLongInt (int64_t initialValue=0)
 Constructor accepting an optional default value. More...
 
virtual ~UtlLongLongInt ()
 Destructor. More...
 
UtlLongLongIntoperator++ ()
 Prefix increment operator. More...
 
UtlLongLongInt operator++ (int)
 Postfix increment operator. More...
 
UtlLongLongIntoperator-- ()
 Prefix decrement operator. More...
 
UtlLongLongInt operator-- (int)
 Postfix decrement operator. More...
 
 operator int64_t ()
 Conversion to long long int. More...
 
int64_t setValue (int64_t iValue)
 Set a new long long int value for this object. More...
 
int64_t getValue () const
 Get the long long int wrapped by this object. More...
 
virtual unsigned hash () const
 Calculate a unique hash code for this object. More...
 
virtual UtlContainableType getContainableType () const
 Get the ContainableType for a UtlContainable derived class. More...
 
virtual int compareTo (UtlContainable const *) const
 Compare the this object to another like-object. More...
 
virtual UtlBoolean isEqual (UtlContainable const *) const
 Test this object to another like-object for equality. More...
 
- 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 isInstanceOf (const UtlContainableType type) const
 Determine if this object is a derivative of the specified UtlContainableType. More...
 

Static Public Member Functions

static int64_t stringToLongLong (const char *longLongString)
 Convert a ASCII string to long long int. More...
 
- 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 = "UtlLongLongInt"
 Class type used for runtime checking. More...
 
- Static Public Attributes inherited from UtlContainable
static const UtlContainableType TYPE = "UtlContainable"
 

Detailed Description

UtlContainable wrapper for a 64-bit long int.

Constructor & Destructor Documentation

UtlLongLongInt ( int64_t  initialValue = 0)

Constructor accepting an optional default value.

~UtlLongLongInt ( )
virtual

Destructor.

Member Function Documentation

UtlLongLongInt & operator++ ( )

Prefix increment operator.

UtlLongLongInt operator++ ( int  )

Postfix increment operator.

UtlLongLongInt & operator-- ( )

Prefix decrement operator.

UtlLongLongInt operator-- ( int  )

Postfix decrement operator.

operator int64_t ( )
inline

Conversion to long long int.

int64_t setValue ( int64_t  iValue)

Set a new long long int value for this object.

Returns
the old value
int64_t stringToLongLong ( const char *  longLongString)
static

Convert a ASCII string to long long int.

int64_t getValue ( ) const

Get the long long int wrapped by this object.

unsigned hash ( ) const
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 hash code.

Implements UtlContainable.

UtlContainableType getContainableType ( ) const
virtual

Get the ContainableType for a UtlContainable derived class.

Implements UtlContainable.

int compareTo ( UtlContainable const *  inVal) const
virtual

Compare the this object to another like-object.

Results for designating a non-like object are undefined.

Returns
0 if equal, < 0 if less then and >0 if greater.

Implements UtlContainable.

UtlBoolean isEqual ( UtlContainable const *  inVal) const
virtual

Test this object to another like-object for equality.

Returns
false if unlike-objects are specified.

Reimplemented from UtlContainable.

Member Data Documentation

UtlContainableType TYPE = "UtlLongLongInt"
static

Class type used for runtime checking.