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

An STL const_iterator. More...

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

Public Member Functions

 const_iterator ()
 Construct null - equivalent to an 'end' position. More...
 
 const_iterator (const labelRange &)
 Construct from range, moving to its 'begin' position. More...
 
bool operator== (const const_iterator &) const
 
bool operator!= (const const_iterator &) const
 
label operator* ()
 
label operator() ()
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 

Private Attributes

const labelRangerange_
 Reference to the range for which this is an iterator. More...
 
label index_
 Current index. More...
 

Detailed Description

An STL const_iterator.

Definition at line 142 of file labelRange.H.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

const_iterator ( )
inline

Construct null - equivalent to an 'end' position.

Definition at line 51 of file labelRangeI.H.

◆ const_iterator() [2/2]

const_iterator ( const labelRange range)
inlineexplicit

Construct from range, moving to its 'begin' position.

Definition at line 58 of file labelRangeI.H.

Member Function Documentation

◆ operator==()

bool operator== ( const const_iterator iter) const
inline

Definition at line 66 of file labelRangeI.H.

◆ operator!=()

bool operator!= ( const const_iterator iter) const
inline

Definition at line 75 of file labelRangeI.H.

References labelRange::operator==().

Here is the call graph for this function:

◆ operator*()

Foam::label operator* ( )
inline

Definition at line 83 of file labelRangeI.H.

◆ operator()()

Foam::label operator() ( )
inline

Definition at line 89 of file labelRangeI.H.

◆ operator++() [1/2]

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

Definition at line 96 of file labelRangeI.H.

◆ operator++() [2/2]

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

Definition at line 109 of file labelRangeI.H.

Field Documentation

◆ range_

const labelRange& range_
private

Reference to the range for which this is an iterator.

Definition at line 147 of file labelRange.H.

◆ index_

label index_
private

Current index.

Definition at line 150 of file labelRange.H.


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