Loading...
Searching...
No Matches
SLListBase::const_iterator Class Reference

A primitive const node iterator. More...

#include <SLListBase.H>

Public Member Functions

 const_iterator (const const_iterator &)=default
 Copy construct.
 const_iterator (const SLListBase *list, const link *item)
 Construct for a node on the list.
 const_iterator (const SLListBase::iterator &iter)
 Construct from a non-const iterator.
const linkget_node () const noexcept
 The storage node.
bool good () const noexcept
 Pointing at a valid storage node.
void prev ()=delete
 Cannot move backward through list.
void next ()
 Move forward through list.
const_iteratoroperator= (const const_iterator &)=default
 Copy assignment.
bool operator== (const const_iterator &iter) const
bool operator!= (const const_iterator &iter) const

Detailed Description

A primitive const node iterator.

Must normally be extended by inheriting classes.

Definition at line 320 of file SLListBase.H.

Constructor & Destructor Documentation

◆ const_iterator() [1/3]

const_iterator ( const const_iterator & )
default

Copy construct.

References const_iterator(), good(), Foam::noexcept, and SLListBase::SLListBase().

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

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

◆ const_iterator() [2/3]

const_iterator ( const SLListBase * list,
const link * item )
inline

Construct for a node on the list.

Definition at line 257 of file SLListBaseI.H.

References SLListBase::SLListBase().

Here is the call graph for this function:

◆ const_iterator() [3/3]

const_iterator ( const SLListBase::iterator & iter)
inline

Construct from a non-const iterator.

Definition at line 268 of file SLListBaseI.H.

Member Function Documentation

◆ get_node()

const Foam::SLListBase::link * get_node ( ) const
inlinenoexcept

The storage node.

Definition at line 279 of file SLListBaseI.H.

References Foam::noexcept.

◆ good()

bool good ( ) const
inlinenoexcept

Pointing at a valid storage node.

Definition at line 285 of file SLListBaseI.H.

References Foam::noexcept.

Referenced by const_iterator().

Here is the caller graph for this function:

◆ prev()

void prev ( )
inlinedelete

Cannot move backward through list.

References next(), and prev().

Referenced by prev().

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

◆ next()

void next ( )
inline

Move forward through list.

Definition at line 291 of file SLListBaseI.H.

Referenced by prev().

Here is the caller graph for this function:

◆ operator=()

const_iterator & operator= ( const const_iterator & )
default

Copy assignment.

References SLListBase::begin(), SLListBase::cbegin(), and const_iterator().

Here is the call graph for this function:

◆ operator==()

bool operator== ( const const_iterator & iter) const
inline

Definition at line 307 of file SLListBaseI.H.

References const_iterator().

Here is the call graph for this function:

◆ operator!=()

bool operator!= ( const const_iterator & iter) const
inline

Definition at line 316 of file SLListBaseI.H.

References const_iterator().

Here is the call graph for this function:

The documentation for this class was generated from the following files:
  • src/OpenFOAM/containers/LinkedLists/linkTypes/SLListBase/SLListBase.H
  • src/OpenFOAM/containers/LinkedLists/linkTypes/SLListBase/SLListBaseI.H