KCal Library
#include <listbase.h>
Inherits QList< T * >.
Public Member Functions | |
ListBase () | |
ListBase (const ListBase &other) | |
~ListBase () | |
void | clearAll () |
ListBase & | operator= (const ListBase &l) |
bool | operator== (const ListBase &l2) |
bool | removeRef (T *t) |
void | removeRef (typename QList< T * >::iterator it) |
void | setAutoDelete (bool autoDelete) |
Detailed Description
template<class T>
class KCal::ListBase< T >
This class provides a template for lists of pointers.
It extends QList<T *> with an "auto-delete" functionality.
Definition at line 44 of file listbase.h.
Constructor & Destructor Documentation
|
inline |
Constructor.
Definition at line 50 of file listbase.h.
|
inline |
Copy constructor.
- Parameters
-
other is the ListBase to copy.
Definition at line 59 of file listbase.h.
|
inline |
Destructor.
Definition at line 67 of file listbase.h.
Member Function Documentation
|
inline |
Clears the list.
Memory is also freed if the list is set to "auto-delete" mode.
Definition at line 102 of file listbase.h.
|
inline |
Assigns l
to this listbase.
- Parameters
-
l is the ListBase to copy.
Definition at line 78 of file listbase.h.
|
inline |
Removes all the members from the list with the specified address.
Memory is also freed if the list is set to "auto-delete" mode.
- Parameters
-
t is the pointer to remove from the list.
- Returns
- true if successful; otherwise false (no such address
t
found).
Definition at line 116 of file listbase.h.
|
inline |
Removes the specified member from the list.
Memory is also freed if the list is set to "auto-delete" mode.
- Parameters
-
it the iterator to remove from the list.
Definition at line 134 of file listbase.h.
|
inline |
Sets this list to operate in "auto-delete" mode.
This mode deletes the memory pointed at by all members of the list in the destructor.
- Parameters
-
autoDelete if true, puts the list into "auto-delete" mode.
Definition at line 93 of file listbase.h.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.