sipxportlib  Version 3.3
UtlVoidPtr.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 
12 #ifndef _UtlVoidPtr_h_
13 #define _UtlVoidPtr_h_
14 
15 // SYSTEM INCLUDES
16 #include "os/OsDefs.h"
17 
18 // APPLICATION INCLUDES
19 #include "utl/UtlDefs.h"
20 #include "utl/UtlContainable.h"
21 
22 // DEFINES
23 // MACROS
24 // EXTERNAL FUNCTIONS
25 // EXTERNAL VARIABLES
26 // CONSTANTS
27 // STRUCTS
28 // TYPEDEFS
29 // FORWARD DECLARATIONS
30 
32 
41 class UtlVoidPtr : public UtlContainable
42 {
43 /* //////////////////////////// PUBLIC //////////////////////////////////// */
44 public:
45  static const UtlContainableType TYPE ;
47 /* ============================ CREATORS ================================== */
48 
52  UtlVoidPtr(void * pPtr = NULL) ;
53 
57  virtual ~UtlVoidPtr() ;
58 
59 /* ============================ MANIPULATORS ============================== */
60 
66  void* setValue(void *) ;
67 
68 /* ============================ ACCESSORS ================================= */
69 
73  void* getValue() const ;
74 
80  virtual unsigned hash() const ;
81 
85  virtual UtlContainableType getContainableType() const;
86 
87 /* ============================ INQUIRY =================================== */
88 
95  virtual int compareTo(UtlContainable const *) const ;
96 
97 
98 /* //////////////////////////// PROTECTED ///////////////////////////////// */
99 protected:
100 
101 /* //////////////////////////// PRIVATE /////////////////////////////////// */
102 private:
103  void* mpValue ;
104 } ;
105 
106 /* ============================ INLINE METHODS ============================ */
107 
108 #endif // _UtlVoidPtr_h_
UtlVoidPtr(void *pPtr=NULL)
Definition: UtlVoidPtr.cpp:29
virtual UtlContainableType getContainableType() const
Definition: UtlVoidPtr.cpp:66
virtual int compareTo(UtlContainable const *) const
Definition: UtlVoidPtr.cpp:74
void * getValue() const
Definition: UtlVoidPtr.cpp:54
#define NULL
Definition: UtlDefs.h:29
static const UtlContainableType TYPE
Definition: UtlVoidPtr.h:45
const char *const UtlContainableType
Definition: UtlDefs.h:70
virtual ~UtlVoidPtr()
Definition: UtlVoidPtr.cpp:39
Definition: UtlContainable.h:37
virtual unsigned hash() const
Definition: UtlVoidPtr.cpp:60
void * setValue(void *)
Definition: UtlVoidPtr.cpp:45
UtlVoidPtr is a UtlContainable wrapper for a void ptr.
Definition: UtlVoidPtr.h:41