sipxportlib  Version 3.3
UtlSList.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 _UtlSList_h_
13 #define _UtlSList_h_
14 
15 // SYSTEM INCLUDES
16 // APPLICATION INCLUDES
17 #include "utl/UtlDefs.h"
18 #include "utl/UtlList.h"
19 
20 // DEFINES
21 // MACROS
22 // EXTERNAL FUNCTIONS
23 // EXTERNAL VARIABLES
24 // CONSTANTS
25 // STRUCTS
26 // TYPEDEFS
27 // FORWARD DECLARATIONS
28 class UtlContainable;
29 
47 class UtlSList : public UtlList
48 {
49 /* //////////////////////////// PUBLIC //////////////////////////////////// */
50 public:
51  static const UtlContainableType TYPE;
52 
53 /* ============================ CREATORS ================================== */
54 
58  UtlSList();
59 
60 
61 /* ============================ MANIPULATORS ============================== */
62 
68  virtual UtlContainable* append(UtlContainable* obj) ;
69 
71  virtual UtlContainable* insertAt(size_t N,
72  UtlContainable* obj
73  );
85  virtual UtlContainable* insert(UtlContainable* obj) ;
86 
90  virtual UtlContainable* remove(const UtlContainable *);
91 
96  virtual UtlBoolean destroy(UtlContainable *);
97 
98 
99 /* ============================ ACCESSORS ================================= */
100 
101 
106  virtual UtlContainable* find(const UtlContainable *) const ;
107 
108 /* ============================ INQUIRY =================================== */
109 
110 
114  virtual size_t occurrencesOf(const UtlContainable* obj) const ;
115 
120  virtual size_t index(const UtlContainable* obj) const ;
121 
122 
126  virtual UtlContainableType getContainableType() const;
127 
128 /* //////////////////////////// PROTECTED ///////////////////////////////// */
129 protected:
130  friend class UtlSListIterator;
131 
132 
136  virtual UtlContainable* insertAfter(UtlLink* afterNode, UtlContainable* object);
137 
138 /* //////////////////////////// PRIVATE /////////////////////////////////// */
139 private:
140 
141 } ;
142 
143 /* ============================ INLINE METHODS ============================ */
144 
145 #endif // _UtlSList_h_
146 
147 
Definition: UtlSListIterator.h:37
virtual UtlContainableType getContainableType() const
Definition: UtlSList.cpp:242
virtual UtlContainable * insert(UtlContainable *obj)
Definition: UtlSList.cpp:95
virtual UtlContainable * append(UtlContainable *obj)
Definition: UtlSList.cpp:43
Definition: UtlList.h:59
const char *const UtlContainableType
Definition: UtlDefs.h:70
virtual size_t index(const UtlContainable *obj) const
Definition: UtlSList.cpp:208
Definition: UtlContainable.h:37
static const UtlContainableType TYPE
Definition: UtlSList.h:51
UtlSList()
Definition: UtlSList.cpp:31
Definition: UtlSList.h:47
virtual UtlBoolean destroy(UtlContainable *)
Definition: UtlSList.cpp:132
virtual size_t occurrencesOf(const UtlContainable *obj) const
Definition: UtlSList.cpp:184
virtual UtlContainable * insertAfter(UtlLink *afterNode, UtlContainable *object)
Definition: UtlSList.cpp:85
int UtlBoolean
Definition: UtlDefs.h:41
virtual UtlContainable * insertAt(size_t N, UtlContainable *obj)
Insert the designated containable object at the designated position.
Definition: UtlSList.cpp:59
virtual UtlContainable * find(const UtlContainable *) const
Definition: UtlSList.cpp:152