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

An STL-conforming iterator. More...

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

Public Member Functions

 iterator (DLListBase &, link *)
 Construct for a given DLListBase 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 (DLListBase &)
 Construct for a given SLListBase with NULL element and link. More...
 

Private Attributes

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

Friends

class DLListBase
 
class const_iterator
 

Detailed Description

An STL-conforming iterator.

Definition at line 181 of file DLListBase.H.

Constructor & Destructor Documentation

◆ iterator() [1/2]

iterator ( DLListBase s)
inlineprivate

Construct for a given SLListBase with NULL element and link.

Only used to create endIter

Definition at line 190 of file DLListBaseI.H.

◆ iterator() [2/2]

iterator ( DLListBase s,
link elmt 
)
inline

Construct for a given DLListBase and link.

Definition at line 182 of file DLListBaseI.H.

Member Function Documentation

◆ operator=()

void operator= ( const iterator iter)
inline

◆ operator==()

bool operator== ( const iterator iter) const
inline

Definition at line 205 of file DLListBaseI.H.

References DLListBase::iterator::curElmt_.

◆ operator!=()

bool operator!= ( const iterator iter) const
inline

Definition at line 211 of file DLListBaseI.H.

References DLListBase::iterator::curElmt_.

◆ operator*()

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

Definition at line 218 of file DLListBaseI.H.

◆ operator++() [1/2]

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

Definition at line 225 of file DLListBaseI.H.

◆ operator++() [2/2]

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

Definition at line 244 of file DLListBaseI.H.

Friends And Related Function Documentation

◆ DLListBase

friend class DLListBase
friend

Definition at line 183 of file DLListBase.H.

◆ const_iterator

friend class const_iterator
friend

Definition at line 184 of file DLListBase.H.

Field Documentation

◆ curList_

DLListBase& curList_
private

Reference to the list this is an iterator for.

Definition at line 189 of file DLListBase.H.

◆ curElmt_

link* curElmt_
private

◆ curLink_

link curLink_
private

Copy of the link.

Definition at line 195 of file DLListBase.H.

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


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