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 baseIter)
 
reference operator* () const
 
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 >::const_iterator

A const iterator for an indirect list.

Definition at line 291 of file IndirectListBase.H.

Member Typedef Documentation

◆ difference_type

using difference_type = label

Definition at line 298 of file IndirectListBase.H.

◆ value_type

using value_type = const T

Definition at line 299 of file IndirectListBase.H.

◆ pointer

using pointer = const T*

Definition at line 300 of file IndirectListBase.H.

◆ reference

using reference = const T&

Definition at line 301 of file IndirectListBase.H.

◆ iterator_category

using iterator_category = std::forward_iterator_tag

Definition at line 302 of file IndirectListBase.H.

Constructor & Destructor Documentation

◆ const_iterator()

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

Definition at line 305 of file IndirectListBase.H.

Member Function Documentation

◆ operator*()

reference operator* ( ) const
inline

Definition at line 314 of file IndirectListBase.H.

◆ operator++()

const_iterator& operator++ ( )
inline

Definition at line 319 of file IndirectListBase.H.

◆ operator==()

bool operator== ( const_iterator rhs) const
inline

Definition at line 325 of file IndirectListBase.H.

◆ operator!=()

bool operator!= ( const_iterator rhs) const
inline

Definition at line 330 of file IndirectListBase.H.


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