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

FPShortIdTable Class Reference

#include <FPShortId.H>

List of all members.

Public Types

typedef FP::Tag(* GetFP )(Bit8 *ptr)
typedef ShortId(* GetSid )(Bit8 *ptr)

Public Member Functions

 FPShortIdTable (GetFP getfp, GetSid getsid, Bit32 sizeHint=0, double resizeF=2.0, double resizeT=0.7)
 ~FPShortIdTable ()
ShortId Get (const FP::Tag &fptag)
bool Set (Bit8 *ptr, bool resize=true)
bool Resize (Bit32 size)
Bit32 Size ()
Bit32 Entries ()
void Clear ()

Private Attributes

Bit32 numEntries
Bit32 tableSize
double resizeTrigger
double resizeFactor
Bit32table
GetFP getfp
GetSid getsid


Member Typedef Documentation

typedef FP::Tag(* FPShortIdTable::GetFP)(Bit8 *ptr)
 

Definition at line 33 of file FPShortId.H.

typedef ShortId(* FPShortIdTable::GetSid)(Bit8 *ptr)
 

Definition at line 34 of file FPShortId.H.


Constructor & Destructor Documentation

FPShortIdTable::FPShortIdTable GetFP  getfp,
GetSid  getsid,
Bit32  sizeHint = 0,
double  resizeF = 2.0,
double  resizeT = 0.7
 

Definition at line 126 of file FPShortId.C.

References NEW_PTRFREE_ARRAY, numEntries, resizeFactor, resizeTrigger, table, and tableSize.

FPShortIdTable::~FPShortIdTable  ) 
 

Definition at line 139 of file FPShortId.C.

References table, and tableSize.


Member Function Documentation

void FPShortIdTable::Clear  ) 
 

Definition at line 236 of file FPShortId.C.

References numEntries, table, and tableSize.

Referenced by DeleteAllFPShortId().

Bit32 FPShortIdTable::Entries  ) 
 

Definition at line 150 of file FPShortId.C.

References numEntries.

ShortId FPShortIdTable::Get const FP::Tag fptag  ) 
 

Definition at line 183 of file FPShortId.C.

References getfp, getsid, FP::Tag::Hash(), VMemPool::lengthenPointer(), NullShortId, table, and tableSize.

Referenced by GetFPShortId().

bool FPShortIdTable::Resize Bit32  size  ) 
 

Definition at line 155 of file FPShortId.C.

References VMemPool::lengthenPointer(), NEW_PTRFREE_ARRAY, numEntries, Set(), table, and tableSize.

Referenced by Set().

bool FPShortIdTable::Set Bit8 ptr,
bool  resize = true
 

Definition at line 209 of file FPShortId.C.

References getfp, FP::Tag::Hash(), VMemPool::lengthenPointer(), numEntries, Resize(), resizeFactor, resizeTrigger, VMemPool::shortenPointer(), table, and tableSize.

Referenced by Resize(), SetFPDirShortId(), and SetFPFileShortId().

Bit32 FPShortIdTable::Size  ) 
 

Definition at line 145 of file FPShortId.C.

References tableSize.


Member Data Documentation

GetFP FPShortIdTable::getfp [private]
 

Definition at line 54 of file FPShortId.H.

Referenced by Get(), and Set().

GetSid FPShortIdTable::getsid [private]
 

Definition at line 55 of file FPShortId.H.

Referenced by Get().

Bit32 FPShortIdTable::numEntries [private]
 

Definition at line 48 of file FPShortId.H.

Referenced by Clear(), Entries(), FPShortIdTable(), Resize(), and Set().

double FPShortIdTable::resizeFactor [private]
 

Definition at line 51 of file FPShortId.H.

Referenced by FPShortIdTable(), and Set().

double FPShortIdTable::resizeTrigger [private]
 

Definition at line 50 of file FPShortId.H.

Referenced by FPShortIdTable(), and Set().

Bit32* FPShortIdTable::table [private]
 

Definition at line 53 of file FPShortId.H.

Referenced by Clear(), FPShortIdTable(), Get(), Resize(), Set(), and ~FPShortIdTable().

Bit32 FPShortIdTable::tableSize [private]
 

Definition at line 49 of file FPShortId.H.

Referenced by Clear(), FPShortIdTable(), Get(), Resize(), Set(), Size(), and ~FPShortIdTable().


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