Loading...
Searching...
No Matches
DLListBase::iterator Class Reference

A primitive non-const node iterator. More...

#include <DLListBase.H>

Public Member Functions

 iterator (const iterator &)=default
 Copy construct.
 iterator (DLListBase *list, link *item)
 Construct for a node on a list.
linkget_node () const noexcept
 The storage node.
bool good () const noexcept
 Pointing at a valid storage node.
void prev ()
 Move backward through list.
void next ()
 Move forward through list.
void operator= (const iterator &iter)
bool operator== (const iterator &) const
bool operator!= (const iterator &) const

Friends

class DLListBase
class const_iterator

Detailed Description

A primitive non-const node iterator.

Needs to be extended by inheriting classes.

Definition at line 286 of file DLListBase.H.

Constructor & Destructor Documentation

◆ iterator() [1/2]

iterator ( const iterator & )
default

Copy construct.

References DLListBase, good(), iterator(), next(), Foam::noexcept, and prev().

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

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

◆ iterator() [2/2]

iterator ( DLListBase * list,
DLListBase::link * item )
inline

Construct for a node on a list.

Definition at line 206 of file DLListBaseI.H.

References DLListBase.

Here is the call graph for this function:

Member Function Documentation

◆ get_node()

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

The storage node.

Definition at line 224 of file DLListBaseI.H.

References Foam::noexcept.

◆ good()

bool good ( ) const
inlinenoexcept

Pointing at a valid storage node.

Definition at line 230 of file DLListBaseI.H.

References Foam::noexcept.

Referenced by iterator().

Here is the caller graph for this function:

◆ prev()

void prev ( )
inline

Move backward through list.

Definition at line 236 of file DLListBaseI.H.

Referenced by iterator().

Here is the caller graph for this function:

◆ next()

void next ( )
inline

Move forward through list.

Definition at line 255 of file DLListBaseI.H.

Referenced by iterator().

Here is the caller graph for this function:

◆ operator=()

void operator= ( const iterator & iter)
inline

Definition at line 274 of file DLListBaseI.H.

References iterator().

Here is the call graph for this function:

◆ operator==()

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

Definition at line 282 of file DLListBaseI.H.

References iterator().

Here is the call graph for this function:

◆ operator!=()

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

Definition at line 288 of file DLListBaseI.H.

References iterator().

Here is the call graph for this function:

◆ DLListBase

friend class DLListBase
friend

Definition at line 288 of file DLListBase.H.

References DLListBase.

Referenced by const_iterator, DLListBase, iterator(), and iterator().

◆ const_iterator

friend class const_iterator
friend

Definition at line 289 of file DLListBase.H.

References const_iterator, and DLListBase.

Referenced by const_iterator.


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