gKey Class Reference

#include <ghash.h>

Inheritance diagram for gKey:

gInt gStorage gTop List of all members.

Public Types

enum  eKeyKind { e_Int, e_UInt64, e_Real, e_String }

Public Member Functions

 gKey (eKeyKind aKeyKind=e_Int)
 gKey (int v)
 gKey (gInt &v)
 gKey (gString &s)
 gKey (char *s)
virtual ~gKey ()
virtual bool IsOk ()
virtual eKeyKind GetKeyKind ()
virtual t_uint64 GetUInt64 ()
virtual double GetReal ()
virtual gStringGetString ()
virtual unsigned HashPos (unsigned hashSize)
virtual bool MatchKey (gKey &hKey)
virtual bool MatchStorage (gStorage *aObj)
virtual void Reset ()
void Set (int v)
void Set (t_uint64 v)
void Set (double v)
void Set (gString &s)
void Copy (gKey &copy)
virtual unsigned HashStrPos (unsigned hashSize, gString &s)
virtual gStorageNewObject ()
virtual t_ucharToString (t_uchar *uBuf)
virtual void Show (bool doShowAll=true)

Protected Member Functions

void thisNewKind (eKeyKind newKind)

Protected Attributes

eKeyKind keyKind
t_uint64pvalUInt
double * pvalDouble
gString pvalStr

Member Enumeration Documentation

enum gKey::eKeyKind
 

Enumeration values:
e_Int 
e_UInt64 
e_Real 
e_String 

Definition at line 18 of file ghash.h.


Constructor & Destructor Documentation

gKey::gKey eKeyKind  aKeyKind = e_Int  ) 
 

Definition at line 10 of file ghash.cpp.

gKey::gKey int  v  ) 
 

Definition at line 17 of file ghash.cpp.

gKey::gKey gInt v  ) 
 

Definition at line 25 of file ghash.cpp.

gKey::gKey gString s  ) 
 

Definition at line 33 of file ghash.cpp.

gKey::gKey char *  s  ) 
 

Definition at line 42 of file ghash.cpp.

gKey::~gKey  )  [virtual]
 

Definition at line 51 of file ghash.cpp.


Member Function Documentation

void gKey::Copy gKey copy  ) 
 

Definition at line 172 of file ghash.cpp.

Referenced by gHashElemTriple::gHashElemTriple().

virtual eKeyKind gKey::GetKeyKind  )  [inline, virtual]
 

Definition at line 34 of file ghash.h.

Referenced by Copy(), and MatchKey().

double gKey::GetReal  )  [virtual]
 

Definition at line 68 of file ghash.cpp.

Referenced by Copy(), MatchKey(), and ToString().

gString & gKey::GetString  )  [virtual]
 

Definition at line 74 of file ghash.cpp.

Referenced by Copy(), MatchKey(), and ToString().

t_uint64 gKey::GetUInt64  )  [virtual]
 

Definition at line 62 of file ghash.cpp.

Referenced by Copy(), MatchKey(), and ToString().

unsigned gKey::HashPos unsigned  hashSize  )  [virtual]
 

Definition at line 83 of file ghash.cpp.

Referenced by gHash::thisFindKey().

unsigned gKey::HashStrPos unsigned  hashSize,
gString s
[virtual]
 

Definition at line 194 of file ghash.cpp.

Referenced by HashPos().

bool gKey::IsOk  )  [virtual]
 

Reimplemented from gStorage.

Definition at line 57 of file ghash.cpp.

Referenced by MatchKey().

bool gKey::MatchKey gKey hKey  )  [virtual]
 

Definition at line 109 of file ghash.cpp.

Referenced by MatchStorage().

bool gKey::MatchStorage gStorage aObj  )  [virtual]
 

Definition at line 129 of file ghash.cpp.

gStorage * gKey::NewObject  )  [virtual]
 

Reimplemented from gInt.

Definition at line 212 of file ghash.cpp.

void gKey::Reset  )  [virtual]
 

Reimplemented from gInt.

Definition at line 138 of file ghash.cpp.

Referenced by thisNewKind().

void gKey::Set gString s  ) 
 

Definition at line 166 of file ghash.cpp.

void gKey::Set double  v  ) 
 

Definition at line 159 of file ghash.cpp.

void gKey::Set t_uint64  v  ) 
 

Definition at line 152 of file ghash.cpp.

void gKey::Set int  v  ) 
 

Definition at line 146 of file ghash.cpp.

Referenced by Copy().

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

Reimplemented from gInt.

Definition at line 242 of file ghash.cpp.

Referenced by gHashElemTriple::Show().

void gKey::thisNewKind eKeyKind  newKind  )  [protected]
 

Definition at line 248 of file ghash.cpp.

Referenced by Set().

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

Reimplemented from gInt.

Definition at line 218 of file ghash.cpp.

Referenced by Show().


Member Data Documentation

eKeyKind gKey::keyKind [protected]
 

Definition at line 64 of file ghash.h.

Referenced by Copy(), GetKeyKind(), GetString(), gKey(), HashPos(), MatchKey(), thisNewKind(), and ToString().

double* gKey::pvalDouble [protected]
 

Definition at line 68 of file ghash.h.

Referenced by GetReal(), GetString(), HashPos(), Reset(), Set(), thisNewKind(), and ~gKey().

gString gKey::pvalStr [protected]
 

Definition at line 69 of file ghash.h.

Referenced by GetString(), gKey(), HashPos(), Reset(), and Set().

t_uint64* gKey::pvalUInt [protected]
 

Definition at line 67 of file ghash.h.

Referenced by GetString(), GetUInt64(), Reset(), Set(), thisNewKind(), and ~gKey().


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