ListHashTable< T, Key, Hash >::Iterator< TRef, TableRef > Class Template Reference

An STL iterator. More...

Inheritance diagram for ListHashTable< T, Key, Hash >::Iterator< TRef, TableRef >:

Public Member Functions

 Iterator (TableRef, label hashIndex_, label elemIndex_)
 Construct from hash table, hash index and element index. More...
 
 Iterator (const iterator &)
 Construct from the non-const iterator. More...
 
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() ()
 
Iteratoroperator++ ()
 
Iterator operator++ (int)
 
const Key & key () const
 

Friends

class ListHashTable
 
template<class TRef2 , class TableRef2 >
class Iterator
 

Detailed Description

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

An STL iterator.

Definition at line 136 of file ListHashTable.H.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

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

Construct from hash table, hash index and element index.

Definition at line 136 of file ListHashTableI.H.

◆ Iterator() [2/2]

Iterator ( const iterator iter)
inline

Construct from the non-const iterator.

Definition at line 151 of file ListHashTableI.H.

Member Function Documentation

◆ operator=()

void operator= ( const iterator iter)
inline

Definition at line 165 of file ListHashTableI.H.

◆ operator==() [1/2]

bool operator== ( const iterator iter) const
inline

Definition at line 178 of file ListHashTableI.H.

◆ operator==() [2/2]

bool operator== ( const const_iterator iter) const
inline

Definition at line 190 of file ListHashTableI.H.

◆ operator!=() [1/2]

bool operator!= ( const iterator iter) const
inline

Definition at line 202 of file ListHashTableI.H.

◆ operator!=() [2/2]

bool operator!= ( const const_iterator iter) const
inline

Definition at line 214 of file ListHashTableI.H.

◆ operator*()

TRef operator* ( )
inline

Definition at line 225 of file ListHashTableI.H.

◆ operator()()

TRef operator() ( )
inline

Definition at line 234 of file ListHashTableI.H.

◆ operator++() [1/2]

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

Definition at line 252 of file ListHashTableI.H.

◆ operator++() [2/2]

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

Definition at line 305 of file ListHashTableI.H.

◆ key()

const Key & key ( ) const
inline

Definition at line 318 of file ListHashTableI.H.

Friends And Related Function Documentation

◆ ListHashTable

friend class ListHashTable
friend

Definition at line 295 of file ListHashTable.H.

◆ Iterator

friend class Iterator
friend

Definition at line 298 of file ListHashTable.H.


The documentation for this class was generated from the following files: