labelRanges::const_iterator Class Reference

Forward input iterator with const access. More...

Public Member Functions

constexpr const_iterator (const UList< labelRange > *list, const label idx=0, const label subIdx=0) noexcept
 Construct from range list at given index (and sub-index) More...
 
label operator* () const
 Return the current label. More...
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
constexpr bool operator== (const const_iterator &iter) const noexcept
 
constexpr bool operator!= (const const_iterator &iter) const noexcept
 

Detailed Description

Forward input iterator with const access.

Definition at line 221 of file labelRanges.H.

Constructor & Destructor Documentation

◆ const_iterator()

constexpr const_iterator ( const UList< labelRange > *  list,
const label  idx = 0,
const label  subIdx = 0 
)
inlineexplicitnoexcept

Construct from range list at given index (and sub-index)

Definition at line 56 of file labelRangesI.H.

Member Function Documentation

◆ operator*()

Foam::label operator* ( ) const
inline

Return the current label.

Definition at line 69 of file labelRangesI.H.

◆ operator++() [1/2]

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

Definition at line 77 of file labelRangesI.H.

◆ operator++() [2/2]

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

Definition at line 93 of file labelRangesI.H.

◆ operator==()

constexpr bool operator== ( const const_iterator iter) const
inlinenoexcept

Definition at line 104 of file labelRangesI.H.

◆ operator!=()

constexpr bool operator!= ( const const_iterator iter) const
inlinenoexcept

Definition at line 119 of file labelRangesI.H.


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