OpenFOAM logo
Open Source CFD Toolkit

HashPtrTable Class Template Reference

Inheritance diagram for HashPtrTable:

Inheritance graph
[legend]
Collaboration diagram for HashPtrTable:

Collaboration graph
[legend]
List of all members.

template<class T, class Key = word, class Hash = string::hash>
class Foam::HashPtrTable< T, Key, 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 > &)

Member Typedef Documentation

typedef HashTable<T*, Key, Hash>::const_iterator const_iterator
 

Reimplemented from HashTable< T *, Key, Hash >.

Definition at line 92 of file HashPtrTable.H.

typedef HashTable<T*, Key, Hash>::iterator iterator
 

Reimplemented from HashTable< T *, Key, Hash >.

Definition at line 91 of file HashPtrTable.H.


Constructor & Destructor Documentation

HashPtrTable (  label  size = 100  ) 
 

Construct given initial table size.

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 (   ) 
 


Member Function Documentation

void clear (   ) 
 

Clear all entries from table.

Reimplemented from HashTable< T *, Key, Hash >.

bool erase (  iterator &   ) 
 

Erase an hashedEntry specified by given iterator.

void operator= (  const HashPtrTable< T, Key, Hash > &   ) 
 

T* remove (  iterator &   ) 
 

Remove and return the pointer specified by given iterator.


Friends And Related Function Documentation

Ostream& operator (  Ostream &  ,
const HashPtrTable< T, Key, Hash > & 
)  [friend]
 

Istream& operator>> (  Istream &  ,
HashPtrTable< T, Key, Hash > & 
)  [friend]
 


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org