OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

Iterator< TRef, TableRef > Class Template Reference

An STL iterator. More...

Inheritance diagram for Iterator< TRef, TableRef >:
Collaboration diagram for Iterator< TRef, TableRef >:

List of all members.


Public Member Functions

 Iterator (TableRef, label hashIndex_, label elemIndex_)
 Construct from hash table, hash index and element index.
 Iterator (const iterator &)
 Construct from the non-const iterator.
void operator= (const iterator &)
bool operator== (const iterator &) const
bool operator== (const const_iterator &) const
bool operator!= (const iterator &) const
bool operator!= (const const_iterator &) const
TRef operator* ()
TRef operator() ()
Iterator & operator++ ()
Iterator operator++ (int)
const Key & key () const

Friends

class StaticHashTable
class Iterator

Detailed Description

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

An STL iterator.

Definition at line 286 of file StaticHashTable.H.


Constructor & Destructor Documentation

Iterator ( TableRef  hashTbl,
label  hashIndex_,
label  elemIndex_ 
) [inline]

Construct from hash table, hash index and element index.

Definition at line 143 of file StaticHashTableI.H.

Iterator ( const iterator &  iter  )  [inline]

Construct from the non-const iterator.

Definition at line 158 of file StaticHashTableI.H.


Member Function Documentation

void operator= ( const iterator &  iter  )  [inline]

Definition at line 172 of file StaticHashTableI.H.

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

Definition at line 185 of file StaticHashTableI.H.

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

Definition at line 197 of file StaticHashTableI.H.

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

Definition at line 209 of file StaticHashTableI.H.

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

Definition at line 221 of file StaticHashTableI.H.

References Foam::operator==().

Here is the call graph for this function:

TRef operator* (  )  [inline]

Definition at line 232 of file StaticHashTableI.H.

References Foam::operator==().

Here is the call graph for this function:

TRef operator() (  )  [inline]

Definition at line 241 of file StaticHashTableI.H.

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

Definition at line 259 of file StaticHashTableI.H.

References List< T >::size().

Here is the call graph for this function:

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

Definition at line 307 of file StaticHashTableI.H.

const Key & key (  )  const [inline]

Definition at line 320 of file StaticHashTableI.H.


Friends And Related Function Documentation

friend class StaticHashTable [friend]

Definition at line 288 of file StaticHashTable.H.

friend class Iterator [friend]

Definition at line 292 of file StaticHashTable.H.


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