OpenFOAM logo
Open Source CFD Toolkit

StaticHashTable::Iterator Class Template Reference

Inheritance diagram for StaticHashTable::Iterator:

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

Collaboration graph
[legend]
List of all members.

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


Public Member Functions

 Iterator (TableRef curStaticHashTable, label hashIndex_, label elementIndex_)
 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 StaticHashTable
class Iterator

Constructor & Destructor Documentation

Iterator TableRef  curStaticHashTable,
label  hashIndex_,
label  elementIndex_
[inline]
 

Construct from hash table, element and hash index.

Definition at line 101 of file StaticHashTableI.H.

Iterator const iterator  )  [inline]
 

Construct from the non-const iterator.

Definition at line 116 of file StaticHashTableI.H.


Member Function Documentation

const Key & key  )  [inline]
 

Definition at line 256 of file StaticHashTableI.H.

References forAll, and StaticHashTable::iterator.

TRef operator *  )  [inline]
 

Definition at line 171 of file StaticHashTableI.H.

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

Definition at line 162 of file StaticHashTableI.H.

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

Definition at line 154 of file StaticHashTableI.H.

References StaticHashTable::const_iterator, and StaticHashTable::Iterator::operator==().

Here is the call graph for this function:

TRef operator()  )  [inline]
 

Definition at line 180 of file StaticHashTableI.H.

References StaticHashTable::objects_, and UList::size().

Here is the call graph for this function:

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

Definition at line 242 of file StaticHashTableI.H.

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

Definition at line 198 of file StaticHashTableI.H.

void operator= const iterator iter  )  [inline]
 

Definition at line 127 of file StaticHashTableI.H.

References StaticHashTable::Iterator::elementIndex_, StaticHashTable::Iterator::hashIndex_, and StaticHashTable::iterator.

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

Definition at line 145 of file StaticHashTableI.H.

References StaticHashTable::iterator, and StaticHashTable::Iterator::operator==().

Here is the call graph for this function:

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

Definition at line 137 of file StaticHashTableI.H.

References StaticHashTable::const_iterator, StaticHashTable::Iterator::elementIndex_, and StaticHashTable::Iterator::hashIndex_.

Referenced by StaticHashTable::Iterator::operator!=(), and StaticHashTable::Iterator::operator==().


Friends And Related Function Documentation

friend class Iterator [friend]
 

Definition at line 253 of file StaticHashTable.H.

friend class StaticHashTable [friend]
 

Definition at line 249 of file StaticHashTable.H.


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