|
|
|
HashPtrTable< T, Key, Hash > Class Template ReferenceA HashTable specialization for hashing pointers. More...
Inheritance diagram for HashPtrTable< T, Key, Hash >:
![]()
Collaboration diagram for HashPtrTable< T, Key, Hash >:
![]()
Detailed Descriptiontemplate<class T, class Key = word, class Hash = string::hash>
A HashTable specialization for hashing pointers.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| typedef HashTable<T*, Key, Hash>::const_iterator const_iterator |
| HashPtrTable | ( | const label | size = 128 |
) | [inline] |
| HashPtrTable | ( | Istream & | is, | |
| const INew & | inewt | |||
| ) | [inline] |
Construct from Istream using given Istream constructor class.
Definition at line 136 of file HashPtrTableIO.C.
| HashPtrTable | ( | Istream & | is | ) | [inline] |
Construct from Istream using default Istream constructor class.
Definition at line 143 of file HashPtrTableIO.C.
| HashPtrTable | ( | const HashPtrTable< T, Key, Hash > & | ht | ) | [inline] |
| ~HashPtrTable | ( | ) | [inline] |
Definition at line 50 of file HashPtrTable.C.
References HashTable< T *, Key, Hash >::insert(), and Foam::T().

| T * remove | ( | iterator & | it | ) | [inline] |
Remove and return the pointer specified by given iterator.
Definition at line 59 of file HashPtrTable.C.
References HashPtrTable< T, Key, Hash >::clear().

| bool erase | ( | iterator & | it | ) | [inline] |
Erase an hashedEntry specified by given iterator.
Definition at line 68 of file HashPtrTable.C.
References Foam::T().

| void clear | ( | ) | [inline] |
Clear all entries from table.
Reimplemented from HashTable< T *, Key, Hash >.
Definition at line 89 of file HashPtrTable.C.
Referenced by HashPtrTable< T, Key, Hash >::remove().

| void operator= | ( | const HashPtrTable< T, Key, Hash > & | rhs | ) | [inline] |
Definition at line 109 of file HashPtrTable.C.
| Istream& operator>> | ( | Istream & | , | |
| HashPtrTable< T, Key, Hash > & | ||||
| ) | [friend] |
| Ostream& operator | ( | Ostream & | , | |
| const HashPtrTable< T, Key, Hash > & | ||||
| ) | [friend] |