Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

PrefixTbl Class Reference

#include <PrefixTbl.H>

List of all members.

Public Member Functions

 PrefixTbl () throw ()
 PrefixTbl (int szHint) throw ()
 PrefixTbl (std::istream &ifs) throw (FS::EndOfFile, FS::Failure)
int PrefixIndex (int idx) const throw ()
Text Arc (int idx) const throw ()
int NumArcs () const throw ()
int Put (const char *path, TextIntTbl &tbl) throw (Overflow)
int Put (const FV2::T &path, TextIntTbl &tbl) throw (Overflow)
FV2::TGet (int idx) const throw ()
bool GetString (int idx, char *buff, int buff_len) const throw ()
int MemorySize () const throw ()
void Write (std::ostream &ofs) const throw (FS::Failure)
void Read (std::istream &ifs) throw (FS::EndOfFile, FS::Failure)
void Log (VestaLog &log) const throw (VestaLog::Error)
void Recover (RecoveryReader &rd) throw (VestaLog::Error, VestaLog::Eof)
void Send (SRPC &srpc) const throw (SRPC::failure)
void Recv (SRPC &srpc) throw (SRPC::failure)
void Print (std::ostream &os, int indent=0) const throw ()

Static Public Member Functions

static int Skip (std::istream &ifs) throw (FS::EndOfFile, FS::Failure)

Static Public Attributes

static const Basics::uint16 endMarker = ~0

Private Member Functions

int AddArc (const Text &arc) throw (Overflow)

Private Attributes

Basics::uint16 numArcs
Basics::uint16 maxArcs
Basics::uint16indexArray
TextarcArray

Classes

struct  Overflow


Constructor & Destructor Documentation

PrefixTbl::PrefixTbl  )  throw () [inline]
 

Definition at line 54 of file PrefixTbl.H.

PrefixTbl::PrefixTbl int  szHint  )  throw ()
 

Definition at line 41 of file PrefixTbl.C.

References NEW_ARRAY, and NEW_PTRFREE_ARRAY.

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

Definition at line 61 of file PrefixTbl.H.

References Read().


Member Function Documentation

int PrefixTbl::AddArc const Text arc  )  throw (Overflow) [private]
 

Definition at line 53 of file PrefixTbl.C.

References max(), NEW_ARRAY, and NEW_PTRFREE_ARRAY.

Text PrefixTbl::Arc int  idx  )  const throw () [inline]
 

Definition at line 67 of file PrefixTbl.H.

References arcArray.

Referenced by Lookup(), and LookupPath().

FV2::T * PrefixTbl::Get int  idx  )  const throw ()
 

Definition at line 161 of file PrefixTbl.C.

References Sequence< Elem, elem_ptrfree >::addlo(), endMarker, and NEW_CONSTR.

Referenced by CallCache(), and PickleC::UnpickleDepPath().

bool PrefixTbl::GetString int  idx,
char *  buff,
int  buff_len
const throw ()
 

Definition at line 174 of file PrefixTbl.C.

References Text::cchars(), endMarker, Text::Length(), and NEW_PTRFREE_ARRAY.

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

Definition at line 280 of file PrefixTbl.C.

References TextIO::Log().

int PrefixTbl::MemorySize  )  const throw ()
 

Definition at line 221 of file PrefixTbl.C.

References arcArray, indexArray, Text::Length(), maxArcs, and numArcs.

Referenced by VestaVal::T::Size().

int PrefixTbl::NumArcs  )  const throw () [inline]
 

Definition at line 70 of file PrefixTbl.H.

References numArcs.

Referenced by CFPObj::Search(), and Tags().

int PrefixTbl::PrefixIndex int  idx  )  const throw () [inline]
 

Definition at line 64 of file PrefixTbl.H.

References indexArray.

Referenced by Lookup(), and LookupPath().

void PrefixTbl::Print std::ostream &  os,
int  indent = 0
const throw ()
 

Definition at line 348 of file PrefixTbl.C.

References endMarker, and Indent().

Referenced by main().

int PrefixTbl::Put const FV2::T path,
TextIntTbl tbl
throw (Overflow)
 

Definition at line 130 of file PrefixTbl.C.

References endMarker.

int PrefixTbl::Put const char *  path,
TextIntTbl tbl
throw (Overflow)
 

Definition at line 90 of file PrefixTbl.C.

References endMarker, and NEW_PTRFREE_ARRAY.

Referenced by main(), and PickleC::PickleDepPath().

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

Definition at line 262 of file PrefixTbl.C.

References NEW_ARRAY, NEW_PTRFREE_ARRAY, TextIO::Read(), and FS::Read().

Referenced by PrefixTbl().

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

Definition at line 292 of file PrefixTbl.C.

References NEW_ARRAY, NEW_PTRFREE_ARRAY, and TextIO::Recover().

void PrefixTbl::Recv SRPC srpc  )  throw (SRPC::failure)
 

Definition at line 324 of file PrefixTbl.C.

References NEW_ARRAY.

void PrefixTbl::Send SRPC srpc  )  const throw (SRPC::failure)
 

Definition at line 312 of file PrefixTbl.C.

int PrefixTbl::Skip std::istream &  ifs  )  throw (FS::EndOfFile, FS::Failure) [static]
 

Definition at line 234 of file PrefixTbl.C.

References FS::Read(), and TextIO::Skip().

Referenced by VestaVal::T::ReadImmutable().

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

Definition at line 250 of file PrefixTbl.C.

References TextIO::Write(), and FS::Write().

Referenced by main().


Member Data Documentation

Text* PrefixTbl::arcArray [private]
 

Definition at line 128 of file PrefixTbl.H.

Referenced by Arc(), and MemorySize().

const Basics::uint16 PrefixTbl::endMarker = ~0 [static]
 

Definition at line 52 of file PrefixTbl.H.

Referenced by Get(), GetString(), Lookup(), Print(), and Put().

Basics::uint16* PrefixTbl::indexArray [private]
 

Definition at line 127 of file PrefixTbl.H.

Referenced by MemorySize(), and PrefixIndex().

Basics::uint16 PrefixTbl::maxArcs [private]
 

Definition at line 126 of file PrefixTbl.H.

Referenced by MemorySize().

Basics::uint16 PrefixTbl::numArcs [private]
 

Definition at line 125 of file PrefixTbl.H.

Referenced by MemorySize(), and NumArcs().


The documentation for this class was generated from the following files:
Generated on Mon May 8 00:49:12 2006 for Vesta by  doxygen 1.4.2