![]() |
|
Public Types | |
typedef Iterator< T &, StaticHashTable< T, Key, Hash > & > | iterator |
typedef Iterator< const T &, const StaticHashTable< T, Key, Hash > & > | const_iterator |
typedef T | value_type |
Type of values the StaticHashTable contains. | |
typedef T & | reference |
Type that can be used for storing into StaticHashTable::value_type. | |
typedef const T & | const_reference |
Type that can be used for storing into constant. | |
typedef label | size_type |
The type that can represent the size of a StaticHashTable. | |
Public Member Functions | |
StaticHashTable (const label size) | |
Construct given initial table size. | |
StaticHashTable (Istream &, const label size) | |
Construct from Istream. | |
StaticHashTable (const StaticHashTable< T, Key, Hash > &) | |
Construct as copy. | |
~StaticHashTable () | |
label | size () const |
Return number of elements in table. | |
bool | found (const Key &key) const |
Return true if hashedEntry is found in table. | |
iterator | find (const Key &key) |
Find and return an iterator set at the hashedEntry. | |
const_iterator | find (const Key &key) const |
Find and return an const_iterator set at the hashedEntry. | |
List< Key > | toc () const |
Return the table of contents. | |
bool | insert (const Key &key, const T &newElmt) |
Insert a new hashedEntry. | |
bool | erase (const iterator &it) |
Erase an hashedEntry specified by given iterator. | |
bool | erase (const Key &key) |
Erase an hashedEntry specified by given key if in table. | |
void | resize (const label newSize) |
Resize the hash table for efficiency. | |
void | clear () |
Clear all entries from table. | |
void | transfer (StaticHashTable< T, Key, Hash > &) |
Transfer the contents of the argument table into this table. | |
T & | operator[] (const Key &key) |
Find and return an hashedEntry. | |
const T & | operator[] (const Key &key) const |
Find and return an hashedEntry. | |
void | operator= (const StaticHashTable< T, Key, Hash > &) |
Assignment. | |
iterator | begin () |
iterator set to the begining of the StaticHashTable | |
const iterator & | end () |
iterator set to beyond the end of the StaticHashTable | |
const_iterator | begin () const |
const_iterator set to the begining of the StaticHashTable | |
const const_iterator & | end () const |
const_iterator set to beyond the end of the StaticHashTable | |
Friends | |
class | Iterator< T&, StaticHashTable<T, Key, Hash>& > |
class | Iterator< const T&, const StaticHashTable<T, Key, Hash>& > |
Istream & | operator>> (Istream &, StaticHashTable< T, Key, Hash > &) |
Ostream & | operator (Ostream &, const StaticHashTable< T, Key, Hash > &) |
|
Definition at line 125 of file StaticHashTable.H. Referenced by StaticHashTable::begin(), StaticHashTable::end(), StaticHashTable::Iterator::operator!=(), and StaticHashTable::Iterator::operator==(). |
|
Type that can be used for storing into constant. StaticHashTable::value_type objects. This type is usually const StaticHashTable::value_type&. Definition at line 238 of file StaticHashTable.H. |
|
Definition at line 119 of file StaticHashTable.H. Referenced by StaticHashTable::begin(), StaticHashTable::Iterator::key(), StaticHashTable::Iterator::operator=(), StaticHashTable::Iterator::operator==(), and StaticHashTable::size(). |
|
Type that can be used for storing into StaticHashTable::value_type. objects. This type is usually List::value_type&. Definition at line 231 of file StaticHashTable.H. |
|
The type that can represent the size of a StaticHashTable.
Definition at line 241 of file StaticHashTable.H. |
|
Type of values the StaticHashTable contains.
Definition at line 225 of file StaticHashTable.H. |
|
Construct given initial table size.
|
|
Construct from Istream.
|
|
Construct as copy.
|
|
|
|
const_iterator set to the begining of the StaticHashTable
Definition at line 296 of file StaticHashTableI.H. References StaticHashTable::const_iterator. |
|
iterator set to the begining of the StaticHashTable
Definition at line 264 of file StaticHashTableI.H. References StaticHashTable::iterator. |
|
Clear all entries from table.
|
|
const_iterator set to beyond the end of the StaticHashTable
Definition at line 320 of file StaticHashTableI.H. |
|
iterator set to beyond the end of the StaticHashTable
Definition at line 288 of file StaticHashTableI.H. References StaticHashTable::const_iterator, and forAll. Referenced by StaticHashTable::size(). |
|
Erase an hashedEntry specified by given key if in table.
|
|
Erase an hashedEntry specified by given iterator.
|
|
Find and return an const_iterator set at the hashedEntry. If not found iterator = end() |
|
Find and return an iterator set at the hashedEntry. If not found iterator = end() Referenced by StaticHashTable::size(). |
|
Return true if hashedEntry is found in table.
|
|
Insert a new hashedEntry.
|
|
Assignment.
|
|
Find and return an hashedEntry.
Definition at line 77 of file StaticHashTableI.H. References Foam::exit(), Foam::FatalError, FatalErrorIn, and StaticHashTable::toc(). |
Here is the call graph for this function:
|
Find and return an hashedEntry.
Definition at line 61 of file StaticHashTableI.H. References Foam::exit(), Foam::FatalError, FatalErrorIn, and StaticHashTable::toc(). |
Here is the call graph for this function:
|
Resize the hash table for efficiency.
|
|
Return number of elements in table.
Definition at line 52 of file StaticHashTableI.H. References StaticHashTable::end(), StaticHashTable::find(), StaticHashTable::iterator, and Foam::T(). |
Here is the call graph for this function:
|
Return the table of contents.
Referenced by StaticHashTable::operator[](). |
|
Transfer the contents of the argument table into this table. and annull the argument table. |
|
Definition at line 140 of file StaticHashTable.H. |
|
Definition at line 134 of file StaticHashTable.H. |
|
|
|
|