Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OPimCache< T > Class Template Reference

#include </home/clem/local/src/opie/noncore/unsupported/libopie/pim/opimcache.h>

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 &)

Private Attributes

QIntCache< Itemm_cache
OPimCachePrivate * d


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.


Constructor & Destructor Documentation

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

Definition at line 76 of file opimcache.h.

References OPimCache< T >::m_cache, and TRUE.

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>
void OPimCache< T >::add const T &   ) 
 

Definition at line 108 of file opimcache.h.

References FALSE, l, OPimCache< T >::m_cache, and OPimCacheItem< T >::setRecord().

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

Definition at line 86 of file opimcache.h.

References FALSE, and OPimCache< T >::m_cache.

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

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

Definition at line 101 of file opimcache.h.

References OPimCache< T >::m_cache.

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

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

Definition at line 93 of file opimcache.h.

References OPimCache< T >::m_cache.

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

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

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

Definition at line 120 of file opimcache.h.

References OPimCache< T >::m_cache.

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

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

Definition at line 124 of file opimcache.h.

References OPimCache< T >::m_cache, and OPimCacheItem< T >::setRecord().

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

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

Definition at line 97 of file opimcache.h.

References OPimCache< T >::m_cache.

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


Member Data Documentation

template<class T = OPimRecord>
OPimCachePrivate* OPimCache< T >::d [private]
 

Definition at line 54 of file opimcache.h.

template<class T = OPimRecord>
QIntCache<Item> OPimCache< T >::m_cache [private]
 

Definition at line 53 of file opimcache.h.

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


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:43:09 2005 for OPIE by  doxygen 1.4.2