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 >:

Public Types | |
| typedef OPimCacheItem< T > | Item |
Public Member Functions | |
| OPimCache () | |
| OPimCache (const OPimCache &) | |
| ~OPimCache () | |
| OPimCache & | operator= (const OPimCache &) |
| bool | contains (int uid) const |
| void | invalidate () |
| void | setSize (int size) |
| T | 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
|
|||||
|
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
|
|||||||||
|
Definition at line 76 of file opimcache.h. |
|
||||||||||
|
|
|
|||||||||
|
Definition at line 82 of file opimcache.h. |
Member Function Documentation
|
||||||||||
|
|
|
||||||||||
|
Definition at line 86 of file opimcache.h. References OPimCache< T >::Item. |
|
|||||||||
|
Definition at line 93 of file opimcache.h. References QIntCache< Item >::clear(). Referenced by OPimAccessTemplate< T >::invalidateCache(). |
|
||||||||||
|
Definition at line 97 of file opimcache.h. References QIntCache< Item >::setMaxCost(). Referenced by OPimAccessTemplate< T >::setSaneCacheSize(). |
|
||||||||||
|
Definition at line 101 of file opimcache.h. References OPimCache< T >::Item, and OPimCacheItem< T >::record(). |
|
||||||||||
|
Definition at line 108 of file opimcache.h. References QIntCache< Item >::find(), QIntCache< Item >::insert(), OPimCache< T >::Item, and OPimCacheItem< T >::setRecord(). |
|
||||||||||
|
Definition at line 120 of file opimcache.h. References QIntCache< Item >::remove(). Referenced by OPimAccessTemplate< T >::remove(). |
|
||||||||||
|
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:
