Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

hashtable Class Reference

#include <TinkerHash.H>

List of all members.

Public Member Functions

 hashtable ()
 hashtable (int ts)
 ~hashtable ()
char Lookup (char *key, char &d)
int Lookup (char *key, int &d)
double Lookup (char *key, double &d)
tinkerhash_pvoid Lookup (char *key, tinkerhash_pvoid &d)
char LookupChar (char *key)
int LookupInt (char *key)
double LookupDouble (char *key)
tinkerhash_pvoid LookupPointer (char *key)
void Set (char *key, char d)
void Set (char *key, int d)
void Set (char *key, double d)
void Set (char *key, tinkerhash_pvoid d)
enum tinkerhash_types TypeOf (char *key)
tinkerhash_pvoid Delete (char *key)
 hashtable ()
 hashtable (int ts)
 ~hashtable ()
char Lookup (char *key, char &d= '\0')
int Lookup (char *key, int &d=0)
double Lookup (char *key, double &d=0.0)
tinkerhash_pvoid Lookup (char *key, tinkerhash_pvoid &d=NULL)
char LookupChar (char *key)
int LookupInt (char *key)
double LookupDouble (char *key)
tinkerhash_pvoid LookupPointer (char *key)
void Set (char *key, char d)
void Set (char *key, int d)
void Set (char *key, double d)
void Set (char *key, tinkerhash_pvoid d)
enum tinkerhash_types TypeOf (char *key)
tinkerhash_pvoid Delete (char *key)
 hashtable ()
 hashtable (int ts)
 ~hashtable ()
char Lookup (char *key, char &d)
int Lookup (char *key, int &d)
double Lookup (char *key, double &d)
tinkerhash_pvoid Lookup (char *key, tinkerhash_pvoid &d)
char LookupChar (char *key)
int LookupInt (char *key)
double LookupDouble (char *key)
tinkerhash_pvoid LookupPointer (char *key)
void Set (char *key, char d)
void Set (char *key, int d)
void Set (char *key, double d)
void Set (char *key, tinkerhash_pvoid d)
enum tinkerhash_types TypeOf (char *key)
tinkerhash_pvoid Delete (char *key)

Private Attributes

hashtable_element ** table
int tablesize
hashtable_element ** table
hashtable_element ** table


Constructor & Destructor Documentation

hashtable::hashtable  )  [inline]
 

Definition at line 71 of file include/TinkerHash.H.

References DEFAULT_HASHTABLE_SIZE, i, table, and tablesize.

hashtable::hashtable int  ts  )  [inline]
 

Definition at line 77 of file include/TinkerHash.H.

References i, table, and tablesize.

hashtable::~hashtable  )  [inline]
 

Definition at line 83 of file include/TinkerHash.H.

References table.

hashtable::hashtable  )  [inline]
 

Definition at line 68 of file TinkerHash.C.

References DEFAULT_HASHTABLE_SIZE, i, table, and tablesize.

hashtable::hashtable int  ts  )  [inline]
 

Definition at line 74 of file TinkerHash.C.

References i, table, and tablesize.

hashtable::~hashtable  )  [inline]
 

Definition at line 80 of file TinkerHash.C.

References table.

hashtable::hashtable  )  [inline]
 

Definition at line 71 of file src/TinkerHash.H.

References DEFAULT_HASHTABLE_SIZE, i, table, and tablesize.

hashtable::hashtable int  ts  )  [inline]
 

Definition at line 77 of file src/TinkerHash.H.

References i, table, and tablesize.

hashtable::~hashtable  )  [inline]
 

Definition at line 83 of file src/TinkerHash.H.

References table.


Member Function Documentation

tinkerhash_pvoid hashtable::Delete char *  key  )  [inline]
 

Definition at line 239 of file src/TinkerHash.H.

References hashfunc(), hashtable_element::next, hashtable_element::pointer_data, strcmp(), table, tablesize, THT_POINTER, and tinkerhash_pvoid.

tinkerhash_pvoid hashtable::Delete char *  key  )  [inline]
 

Definition at line 231 of file TinkerHash.C.

References hashfunc(), hashtable_element::next, hashtable_element::pointer_data, strcmp(), table, tablesize, THT_POINTER, and tinkerhash_pvoid.

tinkerhash_pvoid hashtable::Delete char *  key  )  [inline]
 

Definition at line 239 of file include/TinkerHash.H.

References hashfunc(), hashtable_element::next, hashtable_element::pointer_data, strcmp(), table, tablesize, THT_POINTER, and tinkerhash_pvoid.

Referenced by main().

tinkerhash_pvoid hashtable::Lookup char *  key,
tinkerhash_pvoid d
[inline]
 

Definition at line 115 of file src/TinkerHash.H.

References hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, hashtable_element::pointer_data, strcmp(), table, tablesize, THT_POINTER, and tinkerhash_pvoid.

double hashtable::Lookup char *  key,
double &  d
[inline]
 

Definition at line 105 of file src/TinkerHash.H.

References hashtable_element::double_data, hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, and THT_DOUBLE.

int hashtable::Lookup char *  key,
int &  d
[inline]
 

Definition at line 95 of file src/TinkerHash.H.

References hashtable_element::eltype, hashfunc(), hashtable_element::int_data, hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, and THT_INT.

char hashtable::Lookup char *  key,
char &  d
[inline]
 

Definition at line 85 of file src/TinkerHash.H.

References hashtable_element::char_data, hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, and THT_CHAR.

tinkerhash_pvoid hashtable::Lookup char *  key,
tinkerhash_pvoid d = NULL
[inline]
 

Definition at line 109 of file TinkerHash.C.

References hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, hashtable_element::pointer_data, strcmp(), table, tablesize, THT_POINTER, and tinkerhash_pvoid.

double hashtable::Lookup char *  key,
double &  d = 0.0
[inline]
 

Definition at line 100 of file TinkerHash.C.

References hashtable_element::double_data, hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, and THT_DOUBLE.

int hashtable::Lookup char *  key,
int &  d = 0
[inline]
 

Definition at line 91 of file TinkerHash.C.

References hashtable_element::eltype, hashfunc(), hashtable_element::int_data, hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, and THT_INT.

char hashtable::Lookup char *  key,
char &  d = '\0'
[inline]
 

Definition at line 82 of file TinkerHash.C.

References hashtable_element::char_data, hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, and THT_CHAR.

tinkerhash_pvoid hashtable::Lookup char *  key,
tinkerhash_pvoid d
[inline]
 

Definition at line 115 of file include/TinkerHash.H.

References hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, hashtable_element::pointer_data, strcmp(), table, tablesize, THT_POINTER, and tinkerhash_pvoid.

double hashtable::Lookup char *  key,
double &  d
[inline]
 

Definition at line 105 of file include/TinkerHash.H.

References hashtable_element::double_data, hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, and THT_DOUBLE.

int hashtable::Lookup char *  key,
int &  d
[inline]
 

Definition at line 95 of file include/TinkerHash.H.

References hashtable_element::eltype, hashfunc(), hashtable_element::int_data, hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, and THT_INT.

char hashtable::Lookup char *  key,
char &  d
[inline]
 

Definition at line 85 of file include/TinkerHash.H.

References hashtable_element::char_data, hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, and THT_CHAR.

Referenced by LookupChar(), LookupDouble(), LookupInt(), LookupPointer(), main(), and knobs::Read().

char hashtable::LookupChar char *  key  )  [inline]
 

Definition at line 126 of file src/TinkerHash.H.

References Lookup().

char hashtable::LookupChar char *  key  )  [inline]
 

Definition at line 119 of file TinkerHash.C.

References Lookup().

char hashtable::LookupChar char *  key  )  [inline]
 

Definition at line 126 of file include/TinkerHash.H.

References Lookup().

Referenced by knobs::Save().

double hashtable::LookupDouble char *  key  )  [inline]
 

Definition at line 136 of file src/TinkerHash.H.

References Lookup().

double hashtable::LookupDouble char *  key  )  [inline]
 

Definition at line 129 of file TinkerHash.C.

References Lookup().

double hashtable::LookupDouble char *  key  )  [inline]
 

Definition at line 136 of file include/TinkerHash.H.

References Lookup().

Referenced by knobs::Save().

int hashtable::LookupInt char *  key  )  [inline]
 

Definition at line 131 of file src/TinkerHash.H.

References Lookup().

int hashtable::LookupInt char *  key  )  [inline]
 

Definition at line 124 of file TinkerHash.C.

References Lookup().

int hashtable::LookupInt char *  key  )  [inline]
 

Definition at line 131 of file include/TinkerHash.H.

References Lookup().

Referenced by knobs::Save().

tinkerhash_pvoid hashtable::LookupPointer char *  key  )  [inline]
 

Definition at line 141 of file src/TinkerHash.H.

References Lookup(), and tinkerhash_pvoid.

tinkerhash_pvoid hashtable::LookupPointer char *  key  )  [inline]
 

Definition at line 134 of file TinkerHash.C.

References Lookup(), and tinkerhash_pvoid.

tinkerhash_pvoid hashtable::LookupPointer char *  key  )  [inline]
 

Definition at line 141 of file include/TinkerHash.H.

References Lookup(), and tinkerhash_pvoid.

Referenced by knobs::Save().

void hashtable::Set char *  key,
tinkerhash_pvoid  d
[inline]
 

Definition at line 207 of file src/TinkerHash.H.

References hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, hashtable_element::pointer_data, strcmp(), table, tablesize, and THT_POINTER.

void hashtable::Set char *  key,
double  d
[inline]
 

Definition at line 187 of file src/TinkerHash.H.

References hashtable_element::double_data, hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, and THT_DOUBLE.

void hashtable::Set char *  key,
int  d
[inline]
 

Definition at line 167 of file src/TinkerHash.H.

References hashtable_element::eltype, hashfunc(), hashtable_element::int_data, hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, and THT_INT.

void hashtable::Set char *  key,
char  d
[inline]
 

Definition at line 147 of file src/TinkerHash.H.

References hashtable_element::char_data, hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, and THT_CHAR.

void hashtable::Set char *  key,
tinkerhash_pvoid  d
[inline]
 

Definition at line 200 of file TinkerHash.C.

References hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, hashtable_element::pointer_data, strcmp(), table, tablesize, and THT_POINTER.

void hashtable::Set char *  key,
double  d
[inline]
 

Definition at line 180 of file TinkerHash.C.

References hashtable_element::double_data, hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, and THT_DOUBLE.

void hashtable::Set char *  key,
int  d
[inline]
 

Definition at line 160 of file TinkerHash.C.

References hashtable_element::eltype, hashfunc(), hashtable_element::int_data, hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, and THT_INT.

void hashtable::Set char *  key,
char  d
[inline]
 

Definition at line 140 of file TinkerHash.C.

References hashtable_element::char_data, hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, and THT_CHAR.

void hashtable::Set char *  key,
tinkerhash_pvoid  d
[inline]
 

Definition at line 207 of file include/TinkerHash.H.

References hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, hashtable_element::pointer_data, strcmp(), table, tablesize, and THT_POINTER.

void hashtable::Set char *  key,
double  d
[inline]
 

Definition at line 187 of file include/TinkerHash.H.

References hashtable_element::double_data, hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, and THT_DOUBLE.

void hashtable::Set char *  key,
int  d
[inline]
 

Definition at line 167 of file include/TinkerHash.H.

References hashtable_element::eltype, hashfunc(), hashtable_element::int_data, hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, and THT_INT.

void hashtable::Set char *  key,
char  d
[inline]
 

Definition at line 147 of file include/TinkerHash.H.

References hashtable_element::char_data, hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, and THT_CHAR.

Referenced by knobs::Adjust(), knobs::Load(), main(), and knobs::Parse().

enum tinkerhash_types hashtable::TypeOf char *  key  )  [inline]
 

Definition at line 229 of file src/TinkerHash.H.

References hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, THT_EMPTY, and tinkerhash_types.

enum tinkerhash_types hashtable::TypeOf char *  key  )  [inline]
 

Definition at line 221 of file TinkerHash.C.

References hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, THT_EMPTY, and tinkerhash_types.

enum tinkerhash_types hashtable::TypeOf char *  key  )  [inline]
 

Definition at line 229 of file include/TinkerHash.H.

References hashtable_element::eltype, hashfunc(), hashtable_element::key, hashtable_element::next, strcmp(), table, tablesize, THT_EMPTY, and tinkerhash_types.

Referenced by knobs::Save().


Member Data Documentation

hashtable_element** hashtable::table [private]
 

Definition at line 67 of file src/TinkerHash.H.

hashtable_element** hashtable::table [private]
 

Definition at line 64 of file TinkerHash.C.

hashtable_element** hashtable::table [private]
 

Definition at line 67 of file include/TinkerHash.H.

Referenced by Delete(), hashtable(), Lookup(), Set(), TypeOf(), and ~hashtable().

int hashtable::tablesize [private]
 

Definition at line 68 of file src/TinkerHash.H.

Referenced by Delete(), hashtable(), Lookup(), Set(), and TypeOf().


The documentation for this class was generated from the following files:
Generated on Mon Jul 21 20:31:01 2003 for TINKER LEGO DOC by doxygen 1.3.2