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

iterator Class Reference

An STL-conforming iterator. More...

Collaboration diagram for iterator:

List of all members.


Public Member Functions

 iterator (HashTable< T, Key, Hash > &curHashTable, hashedEntry *elmt, label hashIndex)
 Construct from hash table, element and hash index.
void operator= (const iterator &)
bool operator== (const iterator &) const
bool operator!= (const iterator &) const
bool operator== (const const_iterator &) const
bool operator!= (const const_iterator &) const
T & operator* ()
T & operator() ()
const T & operator* () const
const T & operator() () const
iteratoroperator++ ()
iterator operator++ (int)
const Key & key () const

Friends

class HashTable
class const_iterator

Detailed Description

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

An STL-conforming iterator.

Definition at line 306 of file HashTable.H.


Constructor & Destructor Documentation

iterator ( HashTable< T, Key, Hash > &  curHashTable,
hashedEntry *  elmt,
label  hashIndex 
) [inline]

Construct from hash table, element and hash index.

Definition at line 150 of file HashTableI.H.


Member Function Documentation

void operator= ( const iterator iter  )  [inline]

Definition at line 164 of file HashTableI.H.

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

Definition at line 175 of file HashTableI.H.

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

Definition at line 185 of file HashTableI.H.

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

Definition at line 195 of file HashTableI.H.

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

Definition at line 205 of file HashTableI.H.

T & operator* (  )  [inline]

Definition at line 215 of file HashTableI.H.

T & operator() (  )  [inline]

Definition at line 223 of file HashTableI.H.

const T & operator* (  )  const [inline]

Definition at line 231 of file HashTableI.H.

const T & operator() (  )  const [inline]

Definition at line 239 of file HashTableI.H.

Foam::HashTable< T, Key, Hash >::iterator & operator++ (  )  [inline]

Definition at line 248 of file HashTableI.H.

Foam::HashTable< T, Key, Hash >::iterator operator++ ( int   )  [inline]

Definition at line 282 of file HashTableI.H.

const Key & key (  )  const [inline]

Definition at line 294 of file HashTableI.H.


Friends And Related Function Documentation

friend class HashTable [friend]

Definition at line 308 of file HashTable.H.

friend class const_iterator [friend]

Definition at line 309 of file HashTable.H.


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