IndirectListBase< T, Addr >::iterator Class Reference

A non-const iterator for an indirect list. More...

Public Types

using difference_type = label
 
using value_type = T
 
using pointer = T *
 
using reference = T &
 
using iterator_category = std::forward_iterator_tag
 

Public Member Functions

 iterator (UList< T > &list, typename addressing_type::const_iterator addrIter)
 
reference operator* () const
 
iteratoroperator++ ()
 
bool operator== (const iterator &rhs) const
 
bool operator!= (const iterator &rhs) const
 

Detailed Description

template<class T, class Addr>
class Foam::IndirectListBase< T, Addr >::iterator

A non-const iterator for an indirect list.

Only supports forward prefix increment, since the addressing may/may not support postfix or decrement.

Definition at line 246 of file IndirectListBase.H.

Member Typedef Documentation

◆ difference_type

using difference_type = label

Definition at line 253 of file IndirectListBase.H.

◆ value_type

using value_type = T

Definition at line 254 of file IndirectListBase.H.

◆ pointer

using pointer = T*

Definition at line 255 of file IndirectListBase.H.

◆ reference

using reference = T&

Definition at line 256 of file IndirectListBase.H.

◆ iterator_category

using iterator_category = std::forward_iterator_tag

Definition at line 257 of file IndirectListBase.H.

Constructor & Destructor Documentation

◆ iterator()

iterator ( UList< T > &  list,
typename addressing_type::const_iterator  addrIter 
)
inline

Definition at line 259 of file IndirectListBase.H.

Member Function Documentation

◆ operator*()

reference operator* ( ) const
inline

Definition at line 269 of file IndirectListBase.H.

◆ operator++()

iterator & operator++ ( )
inline

Definition at line 271 of file IndirectListBase.H.

◆ operator==()

bool operator== ( const iterator rhs) const
inline

Definition at line 277 of file IndirectListBase.H.

◆ operator!=()

bool operator!= ( const iterator rhs) const
inline

Definition at line 282 of file IndirectListBase.H.


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