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

CTDataCache< SIZE, GRANULARITY > Class Template Reference
[This and That]

#include <ctdatacache.h>

List of all members.

Public Member Functions

 CTDataCache ()
 ~CTDataCache ()
bool isValid (unsigned int block)
bool isDirty (unsigned int block)
unsigned int granularity ()
unsigned int size ()
void setAllValid ()
void setNoneValid ()
void setAllDirty ()
void setNoneDirty ()
void setData (const string &d, unsigned int pos)
string data (unsigned int pos, unsigned int s)
void setValid (unsigned int block)
void setInvalid (unsigned int block)
void setDirty (unsigned int block)
void setClean (unsigned int block)


Detailed Description

template<int SIZE, int GRANULARITY>
class CTDataCache< SIZE, GRANULARITY >

This class supports caching of data blocks. It stores information about which blocks are valid/dirty and the data itself.


Constructor & Destructor Documentation

template<int SIZE, int GRANULARITY>
CTDataCache< SIZE, GRANULARITY >::CTDataCache  )  [inline]
 

template<int SIZE, int GRANULARITY>
CTDataCache< SIZE, GRANULARITY >::~CTDataCache  )  [inline]
 


Member Function Documentation

template<int SIZE, int GRANULARITY>
string CTDataCache< SIZE, GRANULARITY >::data unsigned int  pos,
unsigned int  s
[inline]
 

template<int SIZE, int GRANULARITY>
unsigned int CTDataCache< SIZE, GRANULARITY >::granularity  )  [inline]
 

template<int SIZE, int GRANULARITY>
bool CTDataCache< SIZE, GRANULARITY >::isDirty unsigned int  block  )  [inline]
 

template<int SIZE, int GRANULARITY>
bool CTDataCache< SIZE, GRANULARITY >::isValid unsigned int  block  )  [inline]
 

template<int SIZE, int GRANULARITY>
void CTDataCache< SIZE, GRANULARITY >::setAllDirty  )  [inline]
 

template<int SIZE, int GRANULARITY>
void CTDataCache< SIZE, GRANULARITY >::setAllValid  )  [inline]
 

template<int SIZE, int GRANULARITY>
void CTDataCache< SIZE, GRANULARITY >::setClean unsigned int  block  )  [inline]
 

template<int SIZE, int GRANULARITY>
void CTDataCache< SIZE, GRANULARITY >::setData const string &  d,
unsigned int  pos
[inline]
 

template<int SIZE, int GRANULARITY>
void CTDataCache< SIZE, GRANULARITY >::setDirty unsigned int  block  )  [inline]
 

template<int SIZE, int GRANULARITY>
void CTDataCache< SIZE, GRANULARITY >::setInvalid unsigned int  block  )  [inline]
 

template<int SIZE, int GRANULARITY>
void CTDataCache< SIZE, GRANULARITY >::setNoneDirty  )  [inline]
 

template<int SIZE, int GRANULARITY>
void CTDataCache< SIZE, GRANULARITY >::setNoneValid  )  [inline]
 

template<int SIZE, int GRANULARITY>
void CTDataCache< SIZE, GRANULARITY >::setValid unsigned int  block  )  [inline]
 

template<int SIZE, int GRANULARITY>
unsigned int CTDataCache< SIZE, GRANULARITY >::size  )  [inline]
 


The documentation for this class was generated from the following file:
Generated on Wed Jul 28 14:56:50 2004 for libchipcard by doxygen 1.3.7