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
This class provides a template for lists of pointers.
It extends QList<T *> with an "auto-delete" functionality.
Constructor & Destructor Documentation
KCal::ListBase::ListBase | ( | ) | [inline] |
Constructor.
Definition at line 50 of file listbase.h.
KCal::ListBase::ListBase | ( | const ListBase & | other | ) | [inline] |
Copy constructor.
- Parameters:
-
other is the ListBase to copy.
Definition at line 59 of file listbase.h.
KCal::ListBase::~ListBase | ( | ) | [inline] |
Destructor.
Definition at line 67 of file listbase.h.
Member Function Documentation
void KCal::ListBase::clearAll | ( | ) | [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.
Assigns l
to this listbase.
- Parameters:
-
l is the ListBase to copy.
Definition at line 78 of file listbase.h.
bool KCal::ListBase::removeRef | ( | T * | t | ) | [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.
void KCal::ListBase::removeRef | ( | typename QList< T * >::iterator | it | ) | [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.
void KCal::ListBase::setAutoDelete | ( | bool | autoDelete | ) | [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-2012 The KDE developers.
Generated on Thu Aug 2 2012 15:25:54 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.