OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

HashPtrTable Class Template Reference

Inheritance diagram for HashPtrTable:

Inheritance graph
[legend]
Collaboration diagram for HashPtrTable:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T, class Key = word, class Hash = string::hash>
class Foam::HashPtrTable< T, Key, Hash >

Definition at line 78 of file HashPtrTable.H.


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>::iterator iterator

Reimplemented from HashTable.

Definition at line 91 of file HashPtrTable.H.

Reimplemented from HashTable.

Definition at line 92 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

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.

Reimplemented from HashTable.

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


Friends And Related Function Documentation

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

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


The documentation for this class was generated from the following file: Copyright © 2000-2007 OpenCFD Ltd