Loading...
Searching...
No Matches
IndirectListBase< T, Addr >::const_iterator Class Reference

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

#include <IndirectListBase.H>

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 378 of file IndirectListBase.H.

Member Typedef Documentation

◆ difference_type

template<class T, class Addr>
using difference_type = label

Definition at line 385 of file IndirectListBase.H.

◆ value_type

template<class T, class Addr>
using value_type = const T

Definition at line 386 of file IndirectListBase.H.

◆ pointer

template<class T, class Addr>
using pointer = const T*

Definition at line 387 of file IndirectListBase.H.

◆ reference

template<class T, class Addr>
using reference = const T&

Definition at line 388 of file IndirectListBase.H.

◆ iterator_category

template<class T, class Addr>
using iterator_category = std::forward_iterator_tag

Definition at line 389 of file IndirectListBase.H.

Constructor & Destructor Documentation

◆ const_iterator()

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

Definition at line 391 of file IndirectListBase.H.

References IndirectListBase< T, Addr >::list().

Referenced by operator!=(), operator++(), and operator==().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ operator*()

template<class T, class Addr>
reference operator* ( ) const
inline

Definition at line 401 of file IndirectListBase.H.

◆ operator++()

template<class T, class Addr>
const_iterator & operator++ ( )
inline

Definition at line 403 of file IndirectListBase.H.

References const_iterator().

Here is the call graph for this function:

◆ operator==()

template<class T, class Addr>
bool operator== ( const const_iterator & rhs) const
inline

Definition at line 409 of file IndirectListBase.H.

References const_iterator(), and Foam::rhs().

Here is the call graph for this function:

◆ operator!=()

template<class T, class Addr>
bool operator!= ( const const_iterator & rhs) const
inline

Definition at line 414 of file IndirectListBase.H.

References const_iterator(), and Foam::rhs().

Here is the call graph for this function:

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