labelRanges::const_iterator Class Reference

Forward input iterator with const access. More...

Public Member Functions

constexpr const_iterator (const labelRanges *list, const label i=0) noexcept
 Construct from range list at given 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 117 of file labelRanges.H.

Constructor & Destructor Documentation

◆ const_iterator()

constexpr const_iterator ( const labelRanges list,
const label  i = 0 
)
inlineexplicitconstexprnoexcept

Construct from range list at given index.

Definition at line 39 of file labelRangesI.H.

Member Function Documentation

◆ operator*()

Foam::label operator* ( ) const
inline

Return the current label.

Definition at line 52 of file labelRangesI.H.

◆ operator++() [1/2]

Definition at line 60 of file labelRangesI.H.

◆ operator++() [2/2]

Definition at line 75 of file labelRangesI.H.

◆ operator==()

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

Definition at line 85 of file labelRangesI.H.

◆ operator!=()

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

Definition at line 100 of file labelRangesI.H.


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