libopie PIM API Documentation

OPimCache< T > Class Template Reference

OPimCache for caching the items We support adding, removing and finding. More...

#include <opimcache.h>

Collaboration diagram for OPimCache< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef OPimCacheItem< T > Item

Public Member Functions

 OPimCache ()
 OPimCache (const OPimCache &)
 ~OPimCache ()
OPimCacheoperator= (const OPimCache &)
bool contains (int uid) const
void invalidate ()
void setSize (int size)
find (int uid) const
void add (const T &)
void remove (int uid)
void replace (const T &)

Detailed Description

template<class T = OPimRecord>
class OPimCache< T >

OPimCache for caching the items We support adding, removing and finding.

Definition at line 34 of file opimcache.h.


Member Typedef Documentation

template<class T = OPimRecord>
typedef OPimCacheItem<T> OPimCache< T >::Item
 

Definition at line 36 of file opimcache.h.

Referenced by OPimCache< T >::add(), OPimCache< T >::contains(), OPimCache< T >::find(), and OPimCache< T >::replace().


Constructor & Destructor Documentation

template<class T>
OPimCache< T >::OPimCache  ) 
 

Definition at line 76 of file opimcache.h.

template<class T = OPimRecord>
OPimCache< T >::OPimCache const OPimCache< T > &   ) 
 

template<class T>
OPimCache< T >::~OPimCache  ) 
 

Definition at line 82 of file opimcache.h.


Member Function Documentation

template<class T = OPimRecord>
OPimCache& OPimCache< T >::operator= const OPimCache< T > &   ) 
 

template<class T>
bool OPimCache< T >::contains int  uid  )  const
 

Definition at line 86 of file opimcache.h.

References OPimCache< T >::Item.

template<class T>
void OPimCache< T >::invalidate  ) 
 

Definition at line 93 of file opimcache.h.

References QIntCache< Item >::clear().

Referenced by OPimAccessTemplate< T >::invalidateCache().

template<class T>
void OPimCache< T >::setSize int  size  ) 
 

Definition at line 97 of file opimcache.h.

References QIntCache< Item >::setMaxCost().

Referenced by OPimAccessTemplate< T >::setSaneCacheSize().

template<class T>
T OPimCache< T >::find int  uid  )  const
 

Definition at line 101 of file opimcache.h.

References OPimCache< T >::Item, and OPimCacheItem< T >::record().

template<class T>
void OPimCache< T >::add const T &   ) 
 

Definition at line 108 of file opimcache.h.

References QIntCache< Item >::find(), QIntCache< Item >::insert(), OPimCache< T >::Item, and OPimCacheItem< T >::setRecord().

template<class T>
void OPimCache< T >::remove int  uid  ) 
 

Definition at line 120 of file opimcache.h.

References QIntCache< Item >::remove().

Referenced by OPimAccessTemplate< T >::remove().

template<class T>
void OPimCache< T >::replace const T &   ) 
 

Definition at line 124 of file opimcache.h.

References QIntCache< Item >::find(), OPimCache< T >::Item, and OPimCacheItem< T >::setRecord().

Referenced by OPimAccessTemplate< T >::replace().


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for OPIE Version 1.1.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:26:01 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001