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

OOF_recordCache Class Reference
[OOFILE Implementation Classes]

#include <oofrecs.h>

Collaboration diagram for OOF_recordCache:

Collaboration graph
[legend]
List of all members.

Detailed Description

Store RAM-resident cache of records, eg: OOF_simpleRecordBackend::mDirtyRecordCache.

Todo:
copy ctor OOF_recordCache(const OOF_recordCache &rhs)


Public Types

enum  { kNotFound = ULONG_MAX }

Public Member Functions

 OOF_recordCache ()
 OOF_recordCache (OOF_recordBufferedContext *)
 ~OOF_recordCache ()
void append (OOF_recordBufferedContext *adoptingContext)
void deleteRecord (unsigned long recOffset)
void deleteAll ()
unsigned long containsContext (const OOF_recordBufferedContext *) const
unsigned long containsOffset (unsigned long recOffset) const
unsigned long firstFree () const
OOF_recordBufferedContextorphanBuffer (unsigned long)
OOF_recordBufferedContextitem (unsigned long)
void setItem (unsigned long, OOF_recordBufferedContext *adoptingContext)
void reuseDeletedItem (unsigned long, OOF_recordBufferedContext *adoptingContext)
unsigned long count () const
unsigned long countNew () const
unsigned long countOccupied () const
bool anyDeleted () const

Protected Attributes

OOF_ExpandableLongArray mBuffers
unsigned short mDeletedCells


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
kNotFound 


Constructor & Destructor Documentation

OOF_recordCache::OOF_recordCache  ) 
 

OOF_recordCache::OOF_recordCache OOF_recordBufferedContext  ) 
 

OOF_recordCache::~OOF_recordCache  ) 
 


Member Function Documentation

bool OOF_recordCache::anyDeleted  )  const [inline]
 

void OOF_recordCache::append OOF_recordBufferedContext adoptingContext  ) 
 

unsigned long OOF_recordCache::containsContext const OOF_recordBufferedContext  )  const
 

unsigned long OOF_recordCache::containsOffset unsigned long  recOffset  )  const
 

unsigned long OOF_recordCache::count  )  const [inline]
 

unsigned long OOF_recordCache::countNew  )  const
 

unsigned long OOF_recordCache::countOccupied  )  const [inline]
 

void OOF_recordCache::deleteAll  ) 
 

void OOF_recordCache::deleteRecord unsigned long  recOffset  ) 
 

unsigned long OOF_recordCache::firstFree  )  const
 

OOF_recordBufferedContext * OOF_recordCache::item unsigned  long  ) 
 

OOF_recordBufferedContext * OOF_recordCache::orphanBuffer unsigned  long  ) 
 

void OOF_recordCache::reuseDeletedItem unsigned  long,
OOF_recordBufferedContext adoptingContext
 

void OOF_recordCache::setItem unsigned  long,
OOF_recordBufferedContext adoptingContext
 


Member Data Documentation

OOF_ExpandableLongArray OOF_recordCache::mBuffers [protected]
 

unsigned short OOF_recordCache::mDeletedCells [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Jan 2 01:07:51 2004 for OOFILE by doxygen 1.3.5