gHash Class Reference

#include <ghash.h>

Inheritance diagram for gHash:

gHashGeneric gStorage gTop gHashTriple List of all members.

Public Member Functions

 gHash (unsigned hashSize=LST_HASH_SIZE)
virtual ~gHash ()
virtual bool FindKey (gKey &hKey)
unsigned Add (int v)
unsigned Add (gInt &v)
unsigned Add (gInt &v, gString &s)
unsigned Add (gKey &hKey, gString &s)
virtual t_ucharToString (t_uchar *uBuf)
virtual bool SaveGuts (FILE *f)
virtual bool RestoreGuts (FILE *f)
virtual void Show (bool doShowAll=true)
bool AddTriplePos_dbg (unsigned idx, gKey &hKey, char *str)

Public Attributes

bool doFindBeforeInsert

Protected Member Functions

int thisAddElem (unsigned idx, gHashElemGeneric *pElem)
int thisFindKey (gKey &hKey, int &x)
int thisKeyMatch (gKey &hKey, gStorage *hashElem)

Constructor & Destructor Documentation

gHash::gHash unsigned  hashSize = LST_HASH_SIZE  ) 
 

Definition at line 396 of file ghash.cpp.

gHash::~gHash  )  [virtual]
 

Definition at line 402 of file ghash.cpp.


Member Function Documentation

unsigned gHash::Add gKey hKey,
gString s
 

Definition at line 431 of file ghash.cpp.

unsigned gHash::Add gInt v,
gString s
 

Definition at line 425 of file ghash.cpp.

unsigned gHash::Add gInt v  ) 
 

Definition at line 419 of file ghash.cpp.

unsigned gHash::Add int  v  ) 
 

Definition at line 413 of file ghash.cpp.

Referenced by Add().

bool gHash::AddTriplePos_dbg unsigned  idx,
gKey hKey,
char *  str
 

bool gHash::FindKey gKey hKey  )  [virtual]
 

Implements gHashGeneric.

Reimplemented in gHashTriple.

Definition at line 406 of file ghash.cpp.

Referenced by Add(), and gHashTriple::FindKey().

bool gHash::RestoreGuts FILE *  f  )  [virtual]
 

Reimplemented from gHashGeneric.

Definition at line 452 of file ghash.cpp.

bool gHash::SaveGuts FILE *  f  )  [virtual]
 

Reimplemented from gHashGeneric.

Definition at line 447 of file ghash.cpp.

void gHash::Show bool  doShowAll = true  )  [virtual]
 

Reimplemented from gStorage.

Definition at line 457 of file ghash.cpp.

int gHash::thisAddElem unsigned  idx,
gHashElemGeneric pElem
[protected]
 

Definition at line 481 of file ghash.cpp.

Referenced by Add(), and gHashTriple::AddTriple().

int gHash::thisFindKey gKey hKey,
int &  x
[protected]
 

Definition at line 490 of file ghash.cpp.

Referenced by FindKey().

int gHash::thisKeyMatch gKey hKey,
gStorage hashElem
[protected]
 

Definition at line 504 of file ghash.cpp.

Referenced by gHashTriple::Find(), and thisFindKey().

t_uchar * gHash::ToString t_uchar uBuf  )  [virtual]
 

Reimplemented from gHashGeneric.

Definition at line 442 of file ghash.cpp.


Member Data Documentation

bool gHash::doFindBeforeInsert
 

Definition at line 166 of file ghash.h.

Referenced by Add(), and gHashTriple::AddTriple().


The documentation for this class was generated from the following files:
Generated on Sat Aug 18 02:41:07 2007 for xpfweb_v2x lib by  doxygen 1.4.2