• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

KCal Library

  • KCal
  • ListBase
Public Member Functions | List of all members
KCal::ListBase< T > Class Template Reference

#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

template<class T >
KCal::ListBase< T >::ListBase ( )
inline

Constructor.

Definition at line 50 of file listbase.h.

template<class T >
KCal::ListBase< T >::ListBase ( const ListBase< T > &  other)
inline

Copy constructor.

Parameters
otheris the ListBase to copy.

Definition at line 59 of file listbase.h.

template<class T >
KCal::ListBase< T >::~ListBase ( )
inline

Destructor.

Definition at line 67 of file listbase.h.

Member Function Documentation

template<class T >
void KCal::ListBase< T >::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.

template<class T >
ListBase& KCal::ListBase< T >::operator= ( const ListBase< T > &  l)
inline

Assigns l to this listbase.

Parameters
lis the ListBase to copy.

Definition at line 78 of file listbase.h.

template<class T >
bool KCal::ListBase< T >::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
tis 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.

template<class T >
void KCal::ListBase< T >::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
itthe iterator to remove from the list.

Definition at line 134 of file listbase.h.

template<class T >
void KCal::ListBase< T >::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
autoDeleteif 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:
  • listbase.h
This file is part of the KDE documentation.
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.

KCal Library

Skip menu "KCal Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal