|
|
|
HashPtrTable Class Template ReferenceInheritance diagram for HashPtrTable:![]() ![]() Detailed Descriptiontemplate<class T, class Key = word, class Hash = string::hash>
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Types | |
| typedef HashTable< T *, Key, Hash >::iterator | iterator |
| typedef HashTable< T *, Key, Hash >::const_iterator | const_iterator |
Public Member Functions | |
| HashPtrTable (label size=100) | |
| Construct given initial table size. | |
| template<class INew> | |
| HashPtrTable (Istream &, const INew &) | |
| Construct from Istream using given Istream constructor class. | |
| HashPtrTable (Istream &) | |
| Construct from Istream using default Istream constructor class. | |
| HashPtrTable (const HashPtrTable< T, Key, Hash > &) | |
| Construct as copy. | |
| ~HashPtrTable () | |
| T * | remove (iterator &) |
| Remove and return the pointer specified by given iterator. | |
| bool | erase (iterator &) |
| Erase an hashedEntry specified by given iterator. | |
| void | clear () |
| Clear all entries from table. | |
| void | operator= (const HashPtrTable< T, Key, Hash > &) |
Friends | |
| Istream & | operator>> (Istream &, HashPtrTable< T, Key, Hash > &) |
| Ostream & | operator (Ostream &, const HashPtrTable< T, Key, Hash > &) |
| typedef HashTable<T*, Key, Hash>::const_iterator const_iterator |
| HashPtrTable | ( | label | size = 100 |
) |
Construct given initial table size.
| HashPtrTable | ( | Istream & | , | |
| const INew & | ||||
| ) |
| HashPtrTable | ( | Istream & | ) |
| HashPtrTable | ( | const HashPtrTable< T, Key, Hash > & | ) |
Construct as copy.
| ~HashPtrTable | ( | ) |
| T* remove | ( | iterator & | ) |
Remove and return the pointer specified by given iterator.
| bool erase | ( | iterator & | ) |
Erase an hashedEntry specified by given iterator.
| void clear | ( | ) |
| void operator= | ( | const HashPtrTable< T, Key, Hash > & | ) |
| Istream& operator>> | ( | Istream & | , | |
| HashPtrTable< T, Key, Hash > & | ||||
| ) | [friend] |
| Ostream& operator | ( | Ostream & | , | |
| const HashPtrTable< T, Key, Hash > & | ||||
| ) | [friend] |