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 | contains (const label value) const |
| True if the value is contained within any of the sub-ranges. More... | |
| bool | found (const label value) const |
| True if the value is contained within 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 24 of file labelRangesI.H.
| labelRanges | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 121 of file labelRanges.C.
|
inline |
True if the value is contained within any of the sub-ranges.
Definition at line 133 of file labelRangesI.H.
References range.
Referenced by labelRanges::found().

|
inline |
True if the value is contained within any of the sub-ranges.
Definition at line 124 of file labelRanges.H.
References labelRanges::contains().

| bool add | ( | const labelRange & | range | ) |
Add the range to the list.
Definition at line 129 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 189 of file labelRanges.C.
References IntRange< IntType >::clampSize(), labelRange::debug, Foam::endl(), IntRange< IntType >::first(), forAll, Foam::Info, IntRange< IntType >::last(), Foam::stringOps::lower(), Foam::printRange(), range, labelRange::reset(), and Foam::stringOps::upper().

|
inlinenoexcept |
A const_iterator set to the beginning of the list.
Definition at line 106 of file labelRangesI.H.
|
inlinenoexcept |
A const_iterator set to beyond the end of the list.
Definition at line 113 of file labelRangesI.H.
|
inlinenoexcept |
A const_iterator set to the beginning of the list.
Definition at line 120 of file labelRangesI.H.
|
inlinenoexcept |
A const_iterator set to beyond the end of the list.
Definition at line 127 of file labelRangesI.H.
|
friend |
|
friend |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.