OpenFOAM logo
Open Source CFD Toolkit

HashTable::Iterator Class Template Reference

Inheritance diagram for HashTable::Iterator:

Inheritance graph
[legend]
Collaboration diagram for HashTable::Iterator:

Collaboration graph
[legend]
List of all members.

template<class T, class Key = word, class Hash = string::hash>
template<class TRef, class TableRef, class HashedEntryPtr>
class Foam::HashTable< T, Key, Hash >::Iterator< TRef, TableRef, HashedEntryPtr >


Public Member Functions

 Iterator (TableRef curHashTable, HashedEntryPtr elmt, HashedEntryPtr prev, label hashIndex)
 Construct from hash table, element and hash index.
 Iterator (const iterator &)
 Construct from the non-const iterator.
void operator= (const iterator &iter)
bool operator== (const iterator &iter) const
bool operator== (const const_iterator &iter) const
bool operator!= (const iterator &iter) const
bool operator!= (const const_iterator &iter) const
TRef operator * ()
TRef operator() ()
Iteratoroperator++ ()
Iterator operator++ (int)
const Key & key ()

Friends

class HashTable
class Iterator

Constructor & Destructor Documentation

Iterator TableRef  curHashTable,
HashedEntryPtr  elmt,
HashedEntryPtr  prev,
label  hashIndex
[inline]
 

Construct from hash table, element and hash index.

Definition at line 111 of file HashTableI.H.

Iterator const iterator  )  [inline]
 

Construct from the non-const iterator.

Definition at line 128 of file HashTableI.H.


Member Function Documentation

const Key & key  )  [inline]
 

Definition at line 267 of file HashTableI.H.

References HashTable::iterator, and Foam::label.

TRef operator *  )  [inline]
 

Definition at line 185 of file HashTableI.H.

bool operator!= const const_iterator iter  )  const [inline]
 

Definition at line 176 of file HashTableI.H.

bool operator!= const iterator iter  )  const [inline]
 

Definition at line 168 of file HashTableI.H.

References HashTable::const_iterator, and HashTable::Iterator::elmtPtr_.

TRef operator()  )  [inline]
 

Definition at line 194 of file HashTableI.H.

HashTable< T, Key, Hash >::template Iterator< TRef, TableRef, HashedEntryPtr > operator++ int   )  [inline]
 

Definition at line 253 of file HashTableI.H.

HashTable< T, Key, Hash >::template Iterator< TRef, TableRef, HashedEntryPtr > & operator++  )  [inline]
 

Definition at line 214 of file HashTableI.H.

void operator= const iterator iter  )  [inline]
 

Definition at line 140 of file HashTableI.H.

bool operator== const const_iterator iter  )  const [inline]
 

Definition at line 159 of file HashTableI.H.

References HashTable::Iterator::elmtPtr_, and HashTable::iterator.

bool operator== const iterator iter  )  const [inline]
 

Definition at line 151 of file HashTableI.H.

References HashTable::const_iterator, and HashTable::Iterator::elmtPtr_.


Friends And Related Function Documentation

friend class HashTable [friend]
 

Definition at line 283 of file HashTable.H.

friend class Iterator [friend]
 

Definition at line 287 of file HashTable.H.


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