GenericCache.h File Reference


Detailed Description

Helper class for implementing RAM-based caches.

#include <PalmTypes.h>
#include <support/Atom.h>
#include <support/Locker.h>
#include <support/KeyedVector.h>
#include <support/StdIO.h>

Go to the source code of this file.

Classes

class  SAbstractCache
class  SGenericCache
struct  SGenericCache::entry_t

Enumerations

enum  { B_GENERIC_CACHE_SIZE_UNLIMITED = 0 }
enum  { B_GENERIC_CACHE_NEVER_PURGE = 0x00000001, B_GENERIC_CACHE_DONT_ADD = 0x00000002, B_GENERIC_CACHE_DONT_PURGE = 0x00000004 }

Functions

template<class TYPE>
const sptr< ITextOutput > & PGenericCachePrintItem (const sptr< ITextOutput > &io, const TYPE &data)
template<class TYPE>
ssize_t PGenericCacheSize (const TYPE &data)


Function Documentation

const sptr<ITextOutput>& PGenericCachePrintItem const sptr< ITextOutput > &  io,
const TYPE &  data
[inline]
 

ssize_t PGenericCacheSize const TYPE &  data  )  [inline]