KHTable< Type > Class Template Reference

#include <keylist.h>

Public Member Functions

 KHTable (const int size=97)
 KHTable (const KHTable< Type > &data)
 ~KHTable ()
KYL_BOOL destroy ()
Type find (const void *key, int &valid, const int removeMe=0)
KYL_BOOL add (const Type &data, const void *key)
KYL_BOOL addUnique (const Type &data, const void *key)
KYL_BOOL remove (const void *key)
KHTable< Type > & operator= (const KHTable< Type > &arg)
KYL_BOOL operator== (const KHTable< Type > &arg)
KYL_BOOL inTable (const void *key)
int count () const

Private Attributes

KeyList< Type > ** table
int tableSize

Detailed Description

template<class Type>
class KHTable< Type >

Definition at line 400 of file keylist.h.


Constructor & Destructor Documentation

template<class Type>
KHTable< Type >::KHTable ( const int  size = 97  )  [inline]

Definition at line 416 of file keylist.h.

References KHTable< Type >::table, and KHTable< Type >::tableSize.

template<class Type>
KHTable< Type >::KHTable ( const KHTable< Type > &  data  )  [inline]

Definition at line 425 of file keylist.h.

References KHTable< Type >::table, and KHTable< Type >::tableSize.

template<class Type>
KHTable< Type >::~KHTable (  )  [inline]

Definition at line 433 of file keylist.h.

References KHTable< Type >::table.


Member Function Documentation

template<class Type >
KYL_BOOL KHTable< Type >::add ( const Type &  data,
const void *  key 
) [inline]

Definition at line 490 of file keylist.h.

References KYL_FALSE, ListHash, KHTable< Type >::table, and KHTable< Type >::tableSize.

Referenced by KHTable< Type >::addUnique().

template<class Type >
KYL_BOOL KHTable< Type >::addUnique ( const Type &  data,
const void *  key 
) [inline]

Definition at line 536 of file keylist.h.

References KHTable< Type >::add(), KHTable< Type >::inTable(), and KYL_FALSE.

template<class Type >
int KHTable< Type >::count (  )  const [inline]

Definition at line 545 of file keylist.h.

References KHTable< Type >::table, and KHTable< Type >::tableSize.

template<class Type >
KYL_BOOL KHTable< Type >::destroy (  )  [inline]

Definition at line 459 of file keylist.h.

References KYL_TRUE, KHTable< Type >::table, and KHTable< Type >::tableSize.

Referenced by KHTable< Type >::operator=().

template<class Type >
Type KHTable< Type >::find ( const void *  key,
int &  valid,
const int  removeMe = 0 
) [inline]

Definition at line 471 of file keylist.h.

References KYL_FALSE, ListHash, KHTable< Type >::table, and KHTable< Type >::tableSize.

Referenced by KHTable< Type >::remove().

template<class Type >
KYL_BOOL KHTable< Type >::inTable ( const void *  key  )  [inline]

Definition at line 556 of file keylist.h.

References KYL_FALSE, ListHash, KHTable< Type >::table, and KHTable< Type >::tableSize.

Referenced by KHTable< Type >::addUnique().

template<class Type >
KHTable< Type > & KHTable< Type >::operator= ( const KHTable< Type > &  arg  )  [inline]
template<class Type >
KYL_BOOL KHTable< Type >::operator== ( const KHTable< Type > &  arg  )  [inline]

Definition at line 521 of file keylist.h.

References KYL_FALSE, KYL_TRUE, KHTable< Type >::table, and KHTable< Type >::tableSize.

template<class Type>
KYL_BOOL KHTable< Type >::remove ( const void *  key  )  [inline]

Definition at line 440 of file keylist.h.

References KHTable< Type >::find().


Field Documentation

template<class Type>
KeyList<Type>** KHTable< Type >::table [private]
template<class Type>
int KHTable< Type >::tableSize [private]

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 12 Jul 2013 for SymtabAPI by  doxygen 1.6.1