HTable< Type > Class Template Reference

#include <List.h>

Public Member Functions

 HTable (Type data)
DO_INLINE_F void add (Type data, void *key)
DO_INLINE_F HTable ()
bool addUnique (Type data, void *key)
DO_INLINE_F Type find (void *key)
DO_INLINE_F bool remove (void *key)
DO_INLINE_F HTable< Type > operator= (HTable< Type > arg)
Type operator* ()
Type operator++ (int)
Type operator++ ()
int count ()

Private Attributes

List< Type > ** table
List< Type > currList
int currHid
int tableSize

Friends

std::ostream & operator<< (std::ostream &os, HTable< Type > &data)

Detailed Description

template<class Type>
class HTable< Type >

Definition at line 303 of file List.h.


Constructor & Destructor Documentation

template<class Type>
HTable< Type >::HTable ( Type  data  )  [inline]

Definition at line 320 of file List.h.

References HTable< Type >::add(), and HTable< Type >::HTable().

Referenced by HTable< Type >::HTable().

template<class Type >
DO_INLINE_F HTable< Type >::HTable (  )  [inline]

Definition at line 416 of file List.h.

References HTable< Type >::currHid, HTable< Type >::table, and HTable< Type >::tableSize.


Member Function Documentation

template<class Type >
DO_INLINE_F void HTable< Type >::add ( Type  data,
void *  key 
) [inline]
template<class Type>
bool HTable< Type >::addUnique ( Type  data,
void *  key 
) [inline]

Definition at line 323 of file List.h.

References HTable< Type >::add(), and HTable< Type >::find().

template<class Type>
int HTable< Type >::count (  )  [inline]
template<class Type >
DO_INLINE_F Type HTable< Type >::find ( void *  key  )  [inline]

Definition at line 423 of file List.h.

References ListHash, HTable< Type >::table, and HTable< Type >::tableSize.

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

template<class Type>
Type HTable< Type >::operator* (  )  [inline]

Definition at line 337 of file List.h.

References HTable< Type >::currList.

template<class Type>
Type HTable< Type >::operator++ (  )  [inline]
template<class Type>
Type HTable< Type >::operator++ ( int   )  [inline]
template<class Type >
DO_INLINE_F HTable< Type > HTable< Type >::operator= ( HTable< Type >  arg  )  [inline]

Definition at line 406 of file List.h.

References HTable< Type >::currHid, HTable< Type >::table, and HTable< Type >::tableSize.

template<class Type >
DO_INLINE_F bool HTable< Type >::remove ( void *  key  )  [inline]

Definition at line 454 of file List.h.

References ListHash, HTable< Type >::table, and HTable< Type >::tableSize.


Friends And Related Function Documentation

template<class Type>
std::ostream& operator<< ( std::ostream &  os,
HTable< Type > &  data 
) [friend]

Field Documentation

template<class Type>
int HTable< Type >::currHid [private]
template<class Type>
List<Type> HTable< Type >::currList [private]

Definition at line 386 of file List.h.

Referenced by HTable< Type >::operator*(), and HTable< Type >::operator++().

template<class Type>
List<Type>** HTable< Type >::table [private]
template<class Type>
int HTable< 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