FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

HashTable< T, Key, Hash >::iterator Class Reference

An STL-conforming iterator. More...

#include <src/OpenFOAM/containers/HashTables/HashTable/HashTable.H>


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 294 of file HashTable.H.

Collaboration diagram for HashTable< T, Key, Hash >::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
iterator &  operator++ ()
iterator  operator++ (int)
const Key &  key () const

Friends

class  HashTable
class  const_iterator

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 158 of file HashTableI.H.


Member Function Documentation

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

Definition at line 172 of file HashTableI.H.

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

Definition at line 183 of file HashTableI.H.

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

Definition at line 193 of file HashTableI.H.

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

Definition at line 203 of file HashTableI.H.

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

Definition at line 213 of file HashTableI.H.

T & operator* (  ) [inline]

Definition at line 223 of file HashTableI.H.

T & operator() (  ) [inline]

Definition at line 231 of file HashTableI.H.

const T & operator* (  ) const [inline]

Definition at line 239 of file HashTableI.H.

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

Definition at line 247 of file HashTableI.H.

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

Definition at line 256 of file HashTableI.H.

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

Definition at line 290 of file HashTableI.H.

const Key & key (  ) const [inline]

Definition at line 302 of file HashTableI.H.


Friends And Related Function Documentation

friend class HashTable [friend]

Definition at line 296 of file HashTable.H.

friend class const_iterator [friend]

Definition at line 297 of file HashTable.H.


The documentation for this class was generated from the following files:
  • src/OpenFOAM/containers/HashTables/HashTable/HashTable.H
  • src/OpenFOAM/containers/HashTables/HashTable/HashTableI.H