IntIntTblLR Class Reference

#include <IntIntTblLR.H>

List of all members.

Public Types

typedef Basics::uint16 int_type

Public Member Functions

 IntIntTblLR (int sizeHint=0) throw ()
 IntIntTblLR (const IntIntTblLR *tbl) throw ()
 IntIntTblLR (RecoveryReader &rd) throw (VestaLog::Error, VestaLog::Eof)
 IntIntTblLR (std::istream &ifs) throw (FS::EndOfFile, FS::Failure)
 ~IntIntTblLR () throw ()
bool Get (long lk, int_type &v) const throw ()
bool Put (long lk, long lv) throw (InvalidKey, InvalidValue)
bool Delete (long lk, int_type &v) throw ()
int Size () const throw ()
int ArraySize () const throw ()
void Log (VestaLog &log) const throw (VestaLog::Error)
void Recover (RecoveryReader &rd) throw (VestaLog::Error, VestaLog::Eof)
void Write (std::ostream &ofs) const throw (FS::Failure)
void Read (std::istream &ifs) throw (FS::EndOfFile, FS::Failure)
void Print (std::ostream &os, int indent) const throw ()

Static Public Member Functions

static int_type CheckKey (long lk) throw (InvalidKey)
static int_type CheckValue (long lv) throw (InvalidValue)

Static Public Attributes

static const int_type Unused

Private Attributes

int numEntries
int eltLen
int_typeelt

Friends

class IntIntTblIter

Classes

struct  InvalidKey
struct  InvalidValue


Detailed Description

Definition at line 31 of file IntIntTblLR.H.


Member Typedef Documentation

typedef Basics::uint16 IntIntTblLR::int_type

Definition at line 33 of file IntIntTblLR.H.


Constructor & Destructor Documentation

IntIntTblLR::IntIntTblLR ( int  sizeHint = 0  )  throw ()

Definition at line 33 of file IntIntTblLR.C.

References NEW_PTRFREE_ARRAY.

IntIntTblLR::IntIntTblLR ( const IntIntTblLR tbl  )  throw ()

Definition at line 47 of file IntIntTblLR.C.

References NEW_PTRFREE_ARRAY.

IntIntTblLR::IntIntTblLR ( RecoveryReader rd  )  throw (VestaLog::Error, VestaLog::Eof) [inline]

Definition at line 58 of file IntIntTblLR.H.

References Recover().

Here is the call graph for this function:

IntIntTblLR::IntIntTblLR ( std::istream &  ifs  )  throw (FS::EndOfFile, FS::Failure) [inline]

Definition at line 60 of file IntIntTblLR.H.

References Read().

Here is the call graph for this function:

IntIntTblLR::~IntIntTblLR (  )  throw () [inline]

Definition at line 62 of file IntIntTblLR.H.

References elt.


Member Function Documentation

IntIntTblLR::int_type IntIntTblLR::CheckKey ( long  lk  )  throw (InvalidKey) [static]

Definition at line 72 of file IntIntTblLR.C.

Referenced by VPKFile::NewEntry().

Here is the caller graph for this function:

IntIntTblLR::int_type IntIntTblLR::CheckValue ( long  lv  )  throw (InvalidValue) [static]

Definition at line 81 of file IntIntTblLR.C.

Referenced by VPKFile::NewEntry().

Here is the caller graph for this function:

bool IntIntTblLR::Get ( long  lk,
int_type v 
) const throw ()

Definition at line 90 of file IntIntTblLR.C.

bool IntIntTblLR::Put ( long  lk,
long  lv 
) throw (InvalidKey, InvalidValue)

Definition at line 106 of file IntIntTblLR.C.

References max(), and NEW_PTRFREE_ARRAY.

Referenced by VPKFile::NewEntry(), and CE::T::Pack().

Here is the call graph for this function:

Here is the caller graph for this function:

bool IntIntTblLR::Delete ( long  lk,
int_type v 
) throw ()

Definition at line 146 of file IntIntTblLR.C.

int IntIntTblLR::Size (  )  const throw () [inline]

Definition at line 88 of file IntIntTblLR.H.

References numEntries.

Referenced by CE::T::Pack(), and CFPObj::Search().

Here is the caller graph for this function:

int IntIntTblLR::ArraySize (  )  const throw () [inline]

Definition at line 91 of file IntIntTblLR.H.

References eltLen.

void IntIntTblLR::Log ( VestaLog log  )  const throw (VestaLog::Error)

Definition at line 164 of file IntIntTblLR.C.

Referenced by CE::T::Log().

Here is the caller graph for this function:

void IntIntTblLR::Recover ( RecoveryReader rd  )  throw (VestaLog::Error, VestaLog::Eof)

Definition at line 182 of file IntIntTblLR.C.

References NEW_PTRFREE_ARRAY.

Referenced by IntIntTblLR().

Here is the caller graph for this function:

void IntIntTblLR::Write ( std::ostream &  ofs  )  const throw (FS::Failure)

void IntIntTblLR::Read ( std::istream &  ifs  )  throw (FS::EndOfFile, FS::Failure)

Referenced by IntIntTblLR().

Here is the caller graph for this function:

void IntIntTblLR::Print ( std::ostream &  os,
int  indent 
) const throw ()


Friends And Related Function Documentation

friend class IntIntTblIter [friend]

Definition at line 116 of file IntIntTblLR.H.


Member Data Documentation

const IntIntTblLR::int_type IntIntTblLR::Unused [static]

Definition at line 36 of file IntIntTblLR.H.

Referenced by IntIntTblIter::Next().

int IntIntTblLR::numEntries [private]

Definition at line 112 of file IntIntTblLR.H.

Referenced by Size().

int IntIntTblLR::eltLen [private]

Definition at line 113 of file IntIntTblLR.H.

Referenced by ArraySize().

int_type* IntIntTblLR::elt [private]

Definition at line 114 of file IntIntTblLR.H.

Referenced by ~IntIntTblLR().


The documentation for this class was generated from the following files:
Generated on Fri May 25 00:58:33 2007 for Vesta by  doxygen 1.5.1