DLListBase::iterator Class Reference

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

Public Member Functions

 iterator (const iterator &)=default
 Copy construct. More...
 
 iterator (DLListBase *list, link *item)
 Construct for a node on a list. More...
 
linkget_node () const noexcept
 The storage node. More...
 
bool good () const noexcept
 Pointing at a valid storage node. More...
 
void prev ()
 Move backward through list. More...
 
void next ()
 Move forward through list. More...
 
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 213 of file DLListBase.H.

Constructor & Destructor Documentation

◆ iterator() [1/2]

iterator ( const iterator )
default

Copy construct.

◆ iterator() [2/2]

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

Construct for a node on a list.

Definition at line 237 of file DLListBaseI.H.

Member Function Documentation

◆ get_node()

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

The storage node.

Definition at line 255 of file DLListBaseI.H.

◆ good()

bool good ( ) const
inlinenoexcept

Pointing at a valid storage node.

Definition at line 261 of file DLListBaseI.H.

◆ prev()

void prev ( )
inline

Move backward through list.

Definition at line 267 of file DLListBaseI.H.

◆ next()

void next ( )
inline

Move forward through list.

Definition at line 286 of file DLListBaseI.H.

◆ operator=()

void operator= ( const iterator iter)
inline

Definition at line 305 of file DLListBaseI.H.

◆ operator==()

bool operator== ( const iterator iter) const
inline

Definition at line 313 of file DLListBaseI.H.

◆ operator!=()

bool operator!= ( const iterator iter) const
inline

Definition at line 319 of file DLListBaseI.H.

Friends And Related Function Documentation

◆ DLListBase

friend class DLListBase
friend

Definition at line 215 of file DLListBase.H.

◆ const_iterator

friend class const_iterator
friend

Definition at line 216 of file DLListBase.H.


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