Public Member Functions | Private Attributes
DLListBase::const_iterator Class Reference

An STL-conforming const_iterator. More...

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

Public Member Functions

 const_iterator (const DLListBase &, const link *)
 Construct for a given DLListBase and link. More...
 
 const_iterator (const iterator &)
 Construct from a non-const iterator. More...
 
void operator= (const const_iterator &)
 
bool operator== (const const_iterator &) const
 
bool operator!= (const const_iterator &) const
 
const linkoperator* ()
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 

Private Attributes

const DLListBasecurList_
 Reference to the list this is an iterator for. More...
 
const linkcurElmt_
 Current element. More...
 

Detailed Description

An STL-conforming const_iterator.

Definition at line 228 of file DLListBase.H.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

const_iterator ( const DLListBase s,
const link elmt 
)
inline

Construct for a given DLListBase and link.

Definition at line 275 of file DLListBaseI.H.

◆ const_iterator() [2/2]

const_iterator ( const iterator iter)
inline

Construct from a non-const iterator.

Definition at line 285 of file DLListBaseI.H.

Member Function Documentation

◆ operator=()

void operator= ( const const_iterator iter)
inline

Definition at line 293 of file DLListBaseI.H.

◆ operator==()

bool operator== ( const const_iterator iter) const
inline

Definition at line 302 of file DLListBaseI.H.

◆ operator!=()

bool operator!= ( const const_iterator iter) const
inline

Definition at line 311 of file DLListBaseI.H.

◆ operator*()

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

Definition at line 320 of file DLListBaseI.H.

◆ operator++() [1/2]

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

Definition at line 327 of file DLListBaseI.H.

◆ operator++() [2/2]

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

Definition at line 343 of file DLListBaseI.H.

Field Documentation

◆ curList_

const DLListBase& curList_
private

Reference to the list this is an iterator for.

Definition at line 233 of file DLListBase.H.

◆ curElmt_

const link* curElmt_
private

Current element.

Definition at line 236 of file DLListBase.H.


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