Public Member Functions | Friends | List of all members
StaticHashTable< T, Key, Hash >::Iterator< TRef, TableRef > Class Template Reference

An STL iterator. More...

Inheritance diagram for StaticHashTable< T, Key, Hash >::Iterator< TRef, TableRef >:
Inheritance graph
[legend]

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 StaticHashTable
 
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::StaticHashTable< T, Key, Hash >::Iterator< TRef, TableRef >

An STL iterator.

Definition at line 138 of file StaticHashTable.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 147 of file StaticHashTableI.H.

◆ Iterator() [2/2]

Iterator ( const iterator iter)
inline

Construct from the non-const iterator.

Definition at line 162 of file StaticHashTableI.H.

Member Function Documentation

◆ operator=()

void operator= ( const iterator iter)
inline

Definition at line 176 of file StaticHashTableI.H.

◆ operator==() [1/2]

bool operator== ( const iterator iter) const
inline

Definition at line 189 of file StaticHashTableI.H.

◆ operator==() [2/2]

bool operator== ( const const_iterator iter) const
inline

Definition at line 201 of file StaticHashTableI.H.

◆ operator!=() [1/2]

bool operator!= ( const iterator iter) const
inline

Definition at line 213 of file StaticHashTableI.H.

◆ operator!=() [2/2]

bool operator!= ( const const_iterator iter) const
inline

Definition at line 225 of file StaticHashTableI.H.

◆ operator*()

TRef operator* ( )
inline

Definition at line 236 of file StaticHashTableI.H.

◆ operator()()

TRef operator() ( )
inline

Definition at line 245 of file StaticHashTableI.H.

◆ operator++() [1/2]

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

Definition at line 263 of file StaticHashTableI.H.

◆ operator++() [2/2]

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

Definition at line 316 of file StaticHashTableI.H.

◆ key()

const Key & key ( ) const
inline

Definition at line 329 of file StaticHashTableI.H.

Friends And Related Function Documentation

◆ StaticHashTable

friend class StaticHashTable
friend

Definition at line 297 of file StaticHashTable.H.

◆ Iterator

friend class Iterator
friend

Definition at line 300 of file StaticHashTable.H.


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