Public Member Functions | Private Member Functions | Private Attributes | Friends
SLListBase::iterator Class Reference

An STL-conforming iterator. More...

Collaboration diagram for SLListBase::iterator:
Collaboration graph
[legend]

Public Member Functions

 iterator (SLListBase &, link *)
 Construct for a given SLListBase and link. More...
 
void operator= (const iterator &)
 
bool operator== (const iterator &) const
 
bool operator!= (const iterator &) const
 
linkoperator* ()
 
iteratoroperator++ ()
 
iterator operator++ (int)
 

Private Member Functions

 iterator (SLListBase &)
 Construct for a given SLListBase with NULL element and link. More...
 

Private Attributes

SLListBasecurList_
 Reference to the list this is an iterator for. More...
 
linkcurElmt_
 Current element. More...
 
link curLink_
 Copy of the link. More...
 

Friends

class SLListBase
 
class const_iterator
 

Detailed Description

An STL-conforming iterator.

Definition at line 163 of file SLListBase.H.

Constructor & Destructor Documentation

◆ iterator() [1/2]

iterator ( SLListBase s)
inlineprivate

Construct for a given SLListBase with NULL element and link.

Only used to create endIter

Definition at line 166 of file SLListBaseI.H.

◆ iterator() [2/2]

iterator ( SLListBase s,
link elmt 
)
inline

Construct for a given SLListBase and link.

Definition at line 158 of file SLListBaseI.H.

Member Function Documentation

◆ operator=()

void operator= ( const iterator iter)
inline

◆ operator==()

bool operator== ( const iterator iter) const
inline

Definition at line 181 of file SLListBaseI.H.

References SLListBase::iterator::curElmt_.

◆ operator!=()

bool operator!= ( const iterator iter) const
inline

Definition at line 187 of file SLListBaseI.H.

References SLListBase::iterator::curElmt_.

◆ operator*()

Foam::SLListBase::link & operator* ( )
inline

Definition at line 193 of file SLListBaseI.H.

◆ operator++() [1/2]

Foam::SLListBase::iterator & operator++ ( )
inline

Definition at line 199 of file SLListBaseI.H.

◆ operator++() [2/2]

Foam::SLListBase::iterator operator++ ( int  )
inline

Definition at line 216 of file SLListBaseI.H.

Friends And Related Function Documentation

◆ SLListBase

friend class SLListBase
friend

Definition at line 165 of file SLListBase.H.

◆ const_iterator

friend class const_iterator
friend

Definition at line 166 of file SLListBase.H.

Field Documentation

◆ curList_

SLListBase& curList_
private

Reference to the list this is an iterator for.

Definition at line 171 of file SLListBase.H.

◆ curElmt_

link* curElmt_
private

◆ curLink_

link curLink_
private

Copy of the link.

Definition at line 177 of file SLListBase.H.

Referenced by SLListBase::iterator::operator=().


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