sipxportlib  Version 3.3
UtlLongLongInt.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2005-2006 SIPez LLC.
3 // Licensed to SIPfoundry under a Contributor Agreement.
4 //
5 // Copyright (C) 2004-2006 SIPfoundry Inc.
6 // Licensed by SIPfoundry under the LGPL license.
7 //
8 // Copyright (C) 2004-2006 Pingtel Corp.
9 // Licensed to SIPfoundry under a Contributor Agreement.
10 //
11 // $$
13 
14 
15 #ifndef _UtlLongLongInt_h_
16 #define _UtlLongLongInt_h_
17 
18 // SYSTEM INCLUDES
19 // APPLICATION INCLUDES
20 #include "os/OsDefs.h"
21 #include "utl/UtlDefs.h"
22 #include "utl/UtlContainable.h"
23 
24 // DEFINES
25 // MACROS
26 // EXTERNAL FUNCTIONS
27 // EXTERNAL VARIABLES
28 // CONSTANTS
29 // STRUCTS
30 // TYPEDEFS
31 // FORWARD DECLARATIONS
32 
37 {
38 /* //////////////////////////// PUBLIC //////////////////////////////////// */
39 public:
40  static const UtlContainableType TYPE ;
41 
42 /* ============================ CREATORS ================================== */
43 
45  UtlLongLongInt(int64_t initialValue = 0) ;
46 
48  virtual ~UtlLongLongInt();
49 
50 /* ============================ OPERATORS ============================== */
51 
56 
61 
63  operator int64_t() { return mValue; }
64 
65 /* ============================ MANIPULATORS ============================== */
66 
68  int64_t setValue(int64_t iValue);
73  static int64_t stringToLongLong(const char* longLongString);
75 
76 /* ============================ ACCESSORS ================================= */
77 
79  int64_t getValue() const ;
80 
82  virtual unsigned hash() const ;
88  virtual UtlContainableType getContainableType() const;
90 
91 /* ============================ INQUIRY =================================== */
92 
94  virtual int compareTo(UtlContainable const *) const ;
101  virtual UtlBoolean isEqual(UtlContainable const *) const ;
107 /* //////////////////////////// PROTECTED ///////////////////////////////// */
108 protected:
109 
110 /* //////////////////////////// PRIVATE /////////////////////////////////// */
111 private:
112  int64_t mValue ;
113 
114 } ;
115 
116 /* ============================ INLINE METHODS ============================ */
117 
118 #endif // _UtlLongLongInt_h_
static const UtlContainableType TYPE
Class type used for runtime checking.
Definition: UtlLongLongInt.h:40
virtual UtlContainableType getContainableType() const
Get the ContainableType for a UtlContainable derived class.
Definition: UtlLongLongInt.cpp:188
static int64_t stringToLongLong(const char *longLongString)
Convert a ASCII string to long long int.
Definition: UtlLongLongInt.cpp:110
virtual UtlBoolean isEqual(UtlContainable const *) const
Test this object to another like-object for equality.
Definition: UtlLongLongInt.cpp:228
const char *const UtlContainableType
Definition: UtlDefs.h:70
int64_t setValue(int64_t iValue)
Set a new long long int value for this object.
Definition: UtlLongLongInt.cpp:102
virtual ~UtlLongLongInt()
Destructor.
Definition: UtlLongLongInt.cpp:64
UtlLongLongInt & operator--()
Prefix decrement operator.
Definition: UtlLongLongInt.cpp:86
Definition: UtlContainable.h:37
int64_t getValue() const
Get the long long int wrapped by this object.
Definition: UtlLongLongInt.cpp:176
Definition: UtlLongLongInt.h:36
UtlLongLongInt(int64_t initialValue=0)
Constructor accepting an optional default value.
Definition: UtlLongLongInt.cpp:53
virtual unsigned hash() const
Calculate a unique hash code for this object.
Definition: UtlLongLongInt.cpp:182
int UtlBoolean
Definition: UtlDefs.h:41
signed __int64 int64_t
Definition: stdint.h:89
virtual int compareTo(UtlContainable const *) const
Compare the this object to another like-object.
Definition: UtlLongLongInt.cpp:195
UtlLongLongInt & operator++()
Prefix increment operator.
Definition: UtlLongLongInt.cpp:71