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

An STL const_iterator. More...

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

Public Member Functions

 const_iterator ()
 Construct null - equivalent to an 'end' position. More...
 
 const_iterator (const labelRanges &)
 Construct from list, 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 labelRangeslist_
 Reference to the list for which this is an iterator. More...
 
label index_
 Current list index. More...
 
label subIndex_
 Index of current element at listIndex. More...
 

Detailed Description

An STL const_iterator.

Definition at line 113 of file labelRanges.H.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

const_iterator ( )
inline

Construct null - equivalent to an 'end' position.

Definition at line 43 of file labelRangesI.H.

◆ const_iterator() [2/2]

const_iterator ( const labelRanges lst)
inlineexplicit

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

Definition at line 51 of file labelRangesI.H.

References labelRanges::const_iterator::index_, labelRanges::const_iterator::list_, and labelRanges::const_iterator::subIndex_.

Member Function Documentation

◆ operator==()

bool operator== ( const const_iterator iter) const
inline

Definition at line 66 of file labelRangesI.H.

◆ operator!=()

bool operator!= ( const const_iterator iter) const
inline

Definition at line 79 of file labelRangesI.H.

References Foam::operator==().

Here is the call graph for this function:

◆ operator*()

Foam::label operator* ( )
inline

Definition at line 87 of file labelRangesI.H.

◆ operator()()

Foam::label operator() ( )
inline

Definition at line 93 of file labelRangesI.H.

◆ operator++() [1/2]

Definition at line 100 of file labelRangesI.H.

◆ operator++() [2/2]

Definition at line 118 of file labelRangesI.H.

Field Documentation

◆ list_

const labelRanges& list_
private

Reference to the list for which this is an iterator.

Definition at line 118 of file labelRanges.H.

Referenced by labelRanges::const_iterator::const_iterator().

◆ index_

label index_
private

Current list index.

Definition at line 121 of file labelRanges.H.

Referenced by labelRanges::const_iterator::const_iterator().

◆ subIndex_

label subIndex_
private

Index of current element at listIndex.

Definition at line 124 of file labelRanges.H.

Referenced by labelRanges::const_iterator::const_iterator().


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