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

Opie::OPimCache< T > Class Template Reference

#include </home/clem/local/src/opie/libopie2/opiepim/core/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 Opie::OPimCache< T >

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

Definition at line 65 of file opimcache.h.


Member Typedef Documentation

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

Definition at line 67 of file opimcache.h.


Constructor & Destructor Documentation

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

Definition at line 107 of file opimcache.h.

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

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

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

Definition at line 113 of file opimcache.h.


Member Function Documentation

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

Definition at line 139 of file opimcache.h.

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

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

Definition at line 117 of file opimcache.h.

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

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

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

Definition at line 132 of file opimcache.h.

References Opie::OPimCache< T >::m_cache.

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

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

Definition at line 124 of file opimcache.h.

References Opie::OPimCache< T >::m_cache.

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

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

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

Definition at line 151 of file opimcache.h.

References Opie::OPimCache< T >::m_cache.

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

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

Definition at line 155 of file opimcache.h.

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

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

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

Definition at line 128 of file opimcache.h.

References Opie::OPimCache< T >::m_cache.

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


Member Data Documentation

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

Definition at line 85 of file opimcache.h.

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

Definition at line 84 of file opimcache.h.

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


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