SLListBase::iterator Class Reference

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

Public Member Functions

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

Friends

class SLListBase
 
class const_iterator
 

Detailed Description

A primitive non-const node iterator.

Must normally be extended by inheriting classes.

Definition at line 189 of file SLListBase.H.

Constructor & Destructor Documentation

◆ iterator() [1/2]

iterator ( const iterator )
default

Copy construct.

◆ iterator() [2/2]

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

Construct for a node on the list.

Definition at line 182 of file SLListBaseI.H.

Member Function Documentation

◆ get_node()

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

The storage node.

Definition at line 199 of file SLListBaseI.H.

Referenced by SLListBase::remove().

Here is the caller graph for this function:

◆ good()

bool good ( ) const
inline

Pointing at a valid storage node.

Definition at line 205 of file SLListBaseI.H.

◆ found()

bool found ( ) const
inline

Deprecated(2019-01) Pointing at a valid storage node.

Deprecated:
(2019-01) - use good() method

Definition at line 222 of file SLListBase.H.

◆ prev()

void prev ( )
inlinedelete

Cannot move backward through list.

◆ next()

void next ( )
inline

Move forward through list.

Definition at line 211 of file SLListBaseI.H.

Referenced by SLListBase::remove().

Here is the caller graph for this function:

◆ operator=()

void operator= ( const iterator iter)
inline

Copy assignment.

Definition at line 228 of file SLListBaseI.H.

◆ operator==()

bool operator== ( const iterator iter) const
inline

Definition at line 236 of file SLListBaseI.H.

◆ operator!=()

bool operator!= ( const iterator iter) const
inline

Definition at line 242 of file SLListBaseI.H.

Friends And Related Function Documentation

◆ SLListBase

friend class SLListBase
friend

Definition at line 191 of file SLListBase.H.

◆ const_iterator

friend class const_iterator
friend

Definition at line 192 of file SLListBase.H.


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