Tree Compression with Top Trees Revisited
Public Member Functions | Static Public Member Functions | List of all members
RePair::HashTable< DataType > Class Template Reference

RePair hash table using hashing with open addressing and linear probing. More...

#include <HashTable.h>

Public Member Functions

 HashTable (Records< DataType > &records)
 
PQEntryfind (const int index)
 Find a PQEntry by its index. More...
 
void insert (PQEntry *entry)
 Add a PQEntry into the hash table. More...
 
void remove (PQEntry *entry)
 Delete a PQEntry from the hash table. More...
 
void clear ()
 

Static Public Member Functions

static DataType hashPair (const DataType a, const DataType b)
 Hash two things. Maybe not the greatest hash function in the world. More...
 

Detailed Description

template<typename DataType>
class RePair::HashTable< DataType >

RePair hash table using hashing with open addressing and linear probing.

Definition at line 12 of file HashTable.h.

Constructor & Destructor Documentation

template<typename DataType>
RePair::HashTable< DataType >::HashTable ( Records< DataType > &  records)
inline

Definition at line 14 of file HashTable.h.

Member Function Documentation

template<typename DataType>
void RePair::HashTable< DataType >::clear ( )
inline

Clear everything from the hash table. It won't be reusable afterwards, this is if you no longer need it and want to reclaim the memory

Definition at line 64 of file HashTable.h.

template<typename DataType>
PQEntry* RePair::HashTable< DataType >::find ( const int  index)
inline

Find a PQEntry by its index.

Definition at line 17 of file HashTable.h.

template<typename DataType>
static DataType RePair::HashTable< DataType >::hashPair ( const DataType  a,
const DataType  b 
)
inlinestatic

Hash two things. Maybe not the greatest hash function in the world.

Definition at line 69 of file HashTable.h.

template<typename DataType>
void RePair::HashTable< DataType >::insert ( PQEntry entry)
inline

Add a PQEntry into the hash table.

Definition at line 33 of file HashTable.h.

template<typename DataType>
void RePair::HashTable< DataType >::remove ( PQEntry entry)
inline

Delete a PQEntry from the hash table.

Definition at line 40 of file HashTable.h.


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