A HashTable specialization for hashing pointers. More...
Public Types | |
typedef HashTable< T *, Key, Hash >::iterator | iterator |
typedef HashTable< T *, Key, Hash >::const_iterator | const_iterator |
Public Member Functions | |
HashPtrTable (const label size=128) | |
Construct given initial table size. More... | |
template<class INew > | |
HashPtrTable (Istream &, const INew &) | |
Construct from Istream using given Istream constructor class. More... | |
HashPtrTable (Istream &) | |
Construct from Istream using default Istream constructor class. More... | |
HashPtrTable (const dictionary &) | |
Construct from dictionary using default dictionary constructor. More... | |
HashPtrTable (const HashPtrTable< T, Key, Hash > &) | |
Construct as copy. More... | |
~HashPtrTable () | |
Destructor. More... | |
T * | remove (iterator &) |
Remove and return the pointer specified by given iterator. More... | |
bool | erase (iterator &) |
Erase an hashedEntry specified by given iterator. More... | |
void | clear () |
Clear all entries from table. More... | |
void | write (Ostream &os) const |
Write. More... | |
void | operator= (const HashPtrTable< T, Key, Hash > &) |
Private Member Functions | |
template<class INew > | |
void | read (Istream &, const INew &inewt) |
Read from Istream using given Istream constructor class. More... | |
template<class INew > | |
void | read (const dictionary &dict, const INew &inewt) |
Read from dictionary using given dictionary constructor class. More... | |
Friends | |
Istream & | operator>> (Istream &, HashPtrTable< T, Key, Hash > &) |
Ostream & | operator (Ostream &, const HashPtrTable< T, Key, Hash > &) |
A HashTable specialization for hashing pointers.
Definition at line 50 of file HashPtrTable.H.
typedef HashTable<T*, Key, Hash>::const_iterator const_iterator |
Definition at line 83 of file HashPtrTable.H.
HashPtrTable | ( | const label | size = 128 | ) |
Construct given initial table size.
HashPtrTable | ( | Istream & | is, |
const INew & | inewt | ||
) |
Construct from Istream using given Istream constructor class.
Definition at line 179 of file HashPtrTableIO.C.
HashPtrTable | ( | Istream & | ) |
HashPtrTable | ( | const dictionary & | ) |
Construct from dictionary using default dictionary constructor.
class
HashPtrTable | ( | const HashPtrTable< T, Key, Hash > & | ) |
Construct as copy.
~HashPtrTable | ( | ) |
Destructor.
Definition at line 58 of file HashPtrTable.C.
Read from Istream using given Istream constructor class.
Definition at line 36 of file HashPtrTableIO.C.
|
private |
Read from dictionary using given dictionary constructor class.
Definition at line 141 of file HashPtrTableIO.C.
Remove and return the pointer specified by given iterator.
Definition at line 67 of file HashPtrTable.C.
bool erase | ( | iterator & | it | ) |
Erase an hashedEntry specified by given iterator.
Definition at line 76 of file HashPtrTable.C.
Referenced by Foam::readFields(), and redistributeAndWrite().
void clear | ( | ) |
Clear all entries from table.
Definition at line 97 of file HashPtrTable.C.
void write | ( | Ostream & | os | ) | const |
Write.
Definition at line 158 of file HashPtrTableIO.C.
void operator= | ( | const HashPtrTable< T, Key, Hash > & | rhs | ) |
Definition at line 117 of file HashPtrTable.C.
|
friend |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.