IndirectListBase< T, Addr >::const_iterator Class Reference

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

Public Types

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

Public Member Functions

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

Detailed Description

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

A const iterator for an indirect list.

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

Definition at line 292 of file IndirectListBase.H.

Member Typedef Documentation

◆ difference_type

using difference_type = label

Definition at line 299 of file IndirectListBase.H.

◆ value_type

using value_type = const T

Definition at line 300 of file IndirectListBase.H.

◆ pointer

using pointer = const T*

Definition at line 301 of file IndirectListBase.H.

◆ reference

using reference = const T&

Definition at line 302 of file IndirectListBase.H.

◆ iterator_category

using iterator_category = std::forward_iterator_tag

Definition at line 303 of file IndirectListBase.H.

Constructor & Destructor Documentation

◆ const_iterator()

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

Definition at line 305 of file IndirectListBase.H.

Member Function Documentation

◆ operator*()

reference operator* ( ) const
inline

Definition at line 315 of file IndirectListBase.H.

◆ operator++()

const_iterator & operator++ ( )
inline

Definition at line 317 of file IndirectListBase.H.

◆ operator==()

bool operator== ( const const_iterator rhs) const
inline

Definition at line 323 of file IndirectListBase.H.

◆ operator!=()

bool operator!= ( const const_iterator rhs) const
inline

Definition at line 328 of file IndirectListBase.H.


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