A list of labelRange. More...
Classes | |
class | const_iterator |
Forward input iterator with const access. More... | |
Public Member Functions | |
labelRanges ()=default | |
Default construct. More... | |
labelRanges (const label nElem) | |
Construct given size. More... | |
labelRanges (Istream &is) | |
Construct from Istream. More... | |
bool | found (const label value) const |
Return true if the value is found any of the sub-ranges. More... | |
bool | add (const labelRange &range) |
Add the range to the list. More... | |
bool | remove (const labelRange &range) |
Remove the range from the list. More... | |
const_iterator | cbegin () const noexcept |
A const_iterator set to the beginning of the list. More... | |
const const_iterator | cend () const noexcept |
A const_iterator set to beyond the end of the list. More... | |
const_iterator | begin () const noexcept |
A const_iterator set to the beginning of the list. More... | |
const const_iterator | end () const noexcept |
A const_iterator set to beyond the end of the list. More... | |
Friends | |
Istream & | operator>> (Istream &is, labelRanges &ranges) |
Ostream & | operator<< (Ostream &os, const labelRanges &ranges) |
|
default |
Default construct.
|
inlineexplicit |
Construct given size.
Definition at line 31 of file labelRangesI.H.
labelRanges | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 128 of file labelRanges.C.
|
inline |
Return true if the value is found any of the sub-ranges.
Definition at line 140 of file labelRangesI.H.
References range.
bool add | ( | const labelRange & | range | ) |
Add the range to the list.
Definition at line 136 of file labelRanges.C.
References append(), IntRange< IntType >::clear(), forAll, labelRange::join(), labelRange::overlaps(), and range.
bool remove | ( | const labelRange & | range | ) |
Remove the range from the list.
Definition at line 196 of file labelRanges.C.
References IntRange< IntType >::clampSize(), labelRange::debug, Foam::endl(), IntRange< IntType >::first(), forAll, Foam::Info, IntRange< IntType >::last(), Foam::printRange(), range, and labelRange::reset().
|
inlinenoexcept |
A const_iterator set to the beginning of the list.
Definition at line 113 of file labelRangesI.H.
|
inlinenoexcept |
A const_iterator set to beyond the end of the list.
Definition at line 120 of file labelRangesI.H.
|
inlinenoexcept |
A const_iterator set to the beginning of the list.
Definition at line 127 of file labelRangesI.H.
|
inlinenoexcept |
A const_iterator set to beyond the end of the list.
Definition at line 134 of file labelRangesI.H.
|
friend |
|
friend |