#include <IdentifierHashCalc.h>
|
| | IdentifierHashCalc () |
| | Default constructor makes empty hash table.
|
| | IdentifierHashCalc (const T &idFields) |
| | Make empty table with pointer set to external idHelper, which will be transmitted to the constructor of class T.
|
| void | clear () |
| | Clear the hashtable.
|
| unsigned int | size () const |
| | Number of hashes in the table.
|
| bool | checkValidity () const |
| | Check that the table is internally consistent.
|
| bool | addEntry (const IdType &id) |
| | Add an identifier to the table.
|
| void | setFieldLimits (unsigned int fieldIndex, int fieldMin, int fieldMax) |
| | Set the limits of a specific field.
|
| HashType | getHash (const IdType &id) const |
| | Get hash from 0 to size()-1.
|
| IdType | getIdentifier (const HashType &idHash) const |
| | Get identifier from hash.
|
| void | dump (std::ostream &os=std::cout) const |
| | Dump complete table to output stream.
|
| std::string | dumpToString () const |
| | Dump complete table into a string.
|
template<class T>
class IdentifierHashCalc< T >
Definition at line 29 of file IdentifierHashCalc.h.
◆ HashType
◆ IdFieldsType
◆ IdType
◆ anonymous enum
N is the number of fields to use from the identifier NMAX is just to make sure we get unsigned int type of enum.
Definition at line 37 of file IdentifierHashCalc.h.
◆ IdentifierHashCalc() [1/2]
Default constructor makes empty hash table.
◆ IdentifierHashCalc() [2/2]
Make empty table with pointer set to external idHelper, which will be transmitted to the constructor of class T.
◆ addEntry()
Add an identifier to the table.
◆ checkValidity()
Check that the table is internally consistent.
An empty table will return false.
◆ clear()
◆ dump()
Dump complete table to output stream.
◆ dumpToString()
Dump complete table into a string.
◆ getHash()
Get hash from 0 to size()-1.
Returns invalid hash if id is not in table.
◆ getIdentifier()
Get identifier from hash.
Returns invalid identifier if hash is out of range.
◆ isInRange()
◆ setFieldLimits()
template<class T>
| void IdentifierHashCalc< T >::setFieldLimits |
( |
unsigned int | fieldIndex, |
|
|
int | fieldMin, |
|
|
int | fieldMax ) |
Set the limits of a specific field.
◆ size()
Number of hashes in the table.
◆ update()
◆ m_fieldsFactor
◆ m_fieldsMax
◆ m_fieldsMin
◆ m_fieldsSize
◆ m_idFields
The documentation for this class was generated from the following file: