SLListBase::const_iterator Class Reference

A primitive const node iterator. More...

Public Member Functions

 const_iterator (const const_iterator &)=default
 Copy construct. More...
 
 const_iterator (const SLListBase *list, const link *item)
 Construct for a node on the list. More...
 
 const_iterator (const SLListBase::iterator &iter)
 Construct from a non-const iterator. More...
 
const linkget_node () const noexcept
 The storage node. More...
 
bool good () const noexcept
 Pointing at a valid storage node. More...
 
void prev ()=delete
 Cannot move backward through list. More...
 
void next ()
 Move forward through list. More...
 
const_iteratoroperator= (const const_iterator &)=default
 Copy assignment. More...
 
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 237 of file SLListBase.H.

Constructor & Destructor Documentation

◆ const_iterator() [1/3]

const_iterator ( const const_iterator )
default

Copy construct.

◆ const_iterator() [2/3]

const_iterator ( const SLListBase list,
const link item 
)
inline

Construct for a node on the list.

Definition at line 276 of file SLListBaseI.H.

◆ const_iterator() [3/3]

const_iterator ( const SLListBase::iterator iter)
inline

Construct from a non-const iterator.

Definition at line 287 of file SLListBaseI.H.

Member Function Documentation

◆ get_node()

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

The storage node.

Definition at line 298 of file SLListBaseI.H.

◆ good()

bool good ( ) const
inlinenoexcept

Pointing at a valid storage node.

Definition at line 304 of file SLListBaseI.H.

◆ prev()

void prev ( )
inlinedelete

Cannot move backward through list.

◆ next()

void next ( )
inline

Move forward through list.

Definition at line 310 of file SLListBaseI.H.

◆ operator=()

const_iterator & operator= ( const const_iterator )
default

Copy assignment.

◆ operator==()

bool operator== ( const const_iterator iter) const
inline

Definition at line 326 of file SLListBaseI.H.

◆ operator!=()

bool operator!= ( const const_iterator iter) const
inline

Definition at line 335 of file SLListBaseI.H.


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