Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Hashtable< data, key, hashFunc, equals > Class Template Reference

#include <Hashtable.h>

Inheritance diagram for Hashtable< data, key, hashFunc, equals >:

Detailed Description

template<class data, class key, size_t(*)(key *K) hashFunc, bool(*)(key *k1, key *k2) equals>
class Hashtable< data, key, hashFunc, equals >

Definition at line 11 of file Hashtable.h.

List of all members.

Public Member Functions

 Hashtable ()
 ~Hashtable ()
data * retrieve (key *k)
void retrieveAllData (std::vector< data * > *returnVec)
void retrieveAllKeys (std::vector< key * > *returnVec)
bool insert (data *d, key *k)
data * deleteData (key *k, key **retrievedKey)
size_t numElements ()
size_t usedCapacity ()
size_t capacity ()

Private Member Functions

size_t find (key *k)
void resizeTable ()
 Hashtable (const Hashtable &)
Hashtableoperator= (const Hashtable &)

Private Attributes

int primeIndex
size_t sizeOfTable
std::vector< bool > * isUsed
std::vector< key * > * keys
std::vector< data * > * datas
size_t numElems
size_t numUsedBins

Constructor & Destructor Documentation

template<class data, class key, size_t(*)(key *K) hashFunc, bool(*)(key *k1, key *k2) equals>
Hashtable< data, key, hashFunc, equals >::Hashtable (  ) 

Definition at line 87 of file Hashtable.h.

template<class data, class key, size_t(*)(key *K) hashFunc, bool(*)(key *k1, key *k2) equals>
Hashtable< data, key, hashFunc, equals >::~Hashtable (  ) 

Definition at line 94 of file Hashtable.h.

template<class data, class key, size_t(*)(key *K) hashFunc, bool(*)(key *k1, key *k2) equals>
Hashtable< data, key, hashFunc, equals >::Hashtable ( const Hashtable< data, key, hashFunc, equals > &   )  [private]

Member Function Documentation

template<class data, class key, size_t(*)(key *K) hashFunc, bool(*)(key *k1, key *k2) equals>
size_t Hashtable< data, key, hashFunc, equals >::capacity (  ) 

Definition at line 171 of file Hashtable.h.

template<class data, class key, size_t(*)(key *K) hashFunc, bool(*)(key *k1, key *k2) equals>
data* Hashtable< data, key, hashFunc, equals >::deleteData ( key *  k,
key **  retrievedKey 
)

Definition at line 147 of file Hashtable.h.

Referenced by KnowledgeBase::cleanUpMemory().

template<class data, class key, size_t(*)(key *K) hashFunc, bool(*)(key *k1, key *k2) equals>
size_t Hashtable< data, key, hashFunc, equals >::find ( key *  k  )  [private]
template<class data, class key, size_t(*)(key *K) hashFunc, bool(*)(key *k1, key *k2) equals>
bool Hashtable< data, key, hashFunc, equals >::insert ( data *  d,
key *  k 
)

Definition at line 127 of file Hashtable.h.

Referenced by getBestHoughTransforms(), and KnowledgeBase::setParameter().

template<class data, class key, size_t(*)(key *K) hashFunc, bool(*)(key *k1, key *k2) equals>
size_t Hashtable< data, key, hashFunc, equals >::numElements (  ) 

Definition at line 163 of file Hashtable.h.

template<class data, class key, size_t(*)(key *K) hashFunc, bool(*)(key *k1, key *k2) equals>
Hashtable& Hashtable< data, key, hashFunc, equals >::operator= ( const Hashtable< data, key, hashFunc, equals > &   )  [private]
template<class data, class key, size_t(*)(key *K) hashFunc, bool(*)(key *k1, key *k2) equals>
void Hashtable< data, key, hashFunc, equals >::resizeTable (  )  [private]
template<class data, class key, size_t(*)(key *K) hashFunc, bool(*)(key *k1, key *k2) equals>
data* Hashtable< data, key, hashFunc, equals >::retrieve ( key *  k  ) 
template<class data, class key, size_t(*)(key *K) hashFunc, bool(*)(key *k1, key *k2) equals>
void Hashtable< data, key, hashFunc, equals >::retrieveAllData ( std::vector< data * > *  returnVec  ) 

Definition at line 107 of file Hashtable.h.

Referenced by KnowledgeBase::cleanUpMemory(), and getBestHoughTransforms().

template<class data, class key, size_t(*)(key *K) hashFunc, bool(*)(key *k1, key *k2) equals>
void Hashtable< data, key, hashFunc, equals >::retrieveAllKeys ( std::vector< key * > *  returnVec  ) 

Definition at line 117 of file Hashtable.h.

Referenced by KnowledgeBase::cleanUpMemory().

template<class data, class key, size_t(*)(key *K) hashFunc, bool(*)(key *k1, key *k2) equals>
size_t Hashtable< data, key, hashFunc, equals >::usedCapacity (  ) 

Definition at line 167 of file Hashtable.h.


Member Data Documentation

template<class data, class key, size_t(*)(key *K) hashFunc, bool(*)(key *k1, key *k2) equals>
size_t Hashtable< data, key, hashFunc, equals >::numUsedBins [private]
template<class data, class key, size_t(*)(key *K) hashFunc, bool(*)(key *k1, key *k2) equals>
int Hashtable< data, key, hashFunc, equals >::primeIndex [private]

The documentation for this class was generated from the following file:

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:09 2016 by Doxygen 1.6.3