A range or interval of labels defined by a start and a size. More...
Public Member Functions | |
constexpr | labelRange () noexcept |
constexpr | labelRange (const label len) noexcept |
labelRange (const label beg, const label len) noexcept | |
labelRange (const label beg, const label len, const bool adjustStart) noexcept | |
labelRange (const MinMax< label > &range) noexcept | |
labelRange (Istream &is) | |
label | min () const noexcept |
label | max () const noexcept |
label | before () const noexcept |
label | after () const noexcept |
void | adjust () noexcept |
void | reset (const label beg, const label end, const bool adjustStart) noexcept |
List< label > | labels () const |
bool | overlaps (const labelRange &range, bool touches=false) const |
labelRange | join (const labelRange &range) const |
labelRange | subset (const labelRange &range) const |
labelRange | subset (const label start, const label size) const |
labelRange | subset0 (const label size) const |
bool | valid () const noexcept |
![]() | |
constexpr | IntRange () noexcept |
constexpr | IntRange (const label len) noexcept |
constexpr | IntRange (const label beg, const label len) noexcept |
label | start () const noexcept |
label & | start () noexcept |
label | size () const noexcept |
label & | size () noexcept |
bool | empty () const noexcept |
label | first () const noexcept |
label | last () const noexcept |
void | clear () noexcept |
void | reset (const label beg, const label len) noexcept |
void | setStart (const label i) noexcept |
void | setSize (const label n) noexcept |
void | resize (const label n) noexcept |
void | clampSize () noexcept |
bool | found (const label value) const noexcept |
constexpr label | operator[] (const label i) const noexcept |
bool | operator() (const label value) const noexcept |
label | operator++ () noexcept |
label | operator++ (int) noexcept |
label | operator+= (const label n) noexcept |
label | operator-- () noexcept |
label | operator-- (int) noexcept |
label | operator-= (const label n) noexcept |
operator bool () const noexcept | |
const_iterator | at (const label i) const |
const_iterator | begin () const noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
const_iterator | end () const noexcept |
const_reverse_iterator | rbegin () const noexcept |
const_reverse_iterator | crbegin () const noexcept |
const_reverse_iterator | rend () const noexcept |
const_reverse_iterator | crend () const noexcept |
Static Public Attributes | |
static int | debug |
Additional Inherited Members | |
![]() | |
typedef label | value_type |
typedef label | size_type |
![]() | |
label | rend_value () const noexcept |
label | end_value () const noexcept |
A range or interval of labels defined by a start and a size.
Definition at line 51 of file labelRange.H.
|
inlineconstexprnoexcept |
Definition at line 24 of file labelRangeI.H.
|
inlineexplicitconstexprnoexcept |
Definition at line 30 of file labelRangeI.H.
|
inlinenoexcept |
Definition at line 37 of file labelRangeI.H.
|
inlinenoexcept |
Definition at line 49 of file labelRangeI.H.
|
explicitnoexcept |
Definition at line 37 of file labelRange.C.
References range.
|
explicit |
Definition at line 49 of file labelRange.C.
|
inlinenoexcept |
Definition at line 70 of file labelRangeI.H.
|
inlinenoexcept |
Definition at line 76 of file labelRangeI.H.
|
inlinenoexcept |
Definition at line 82 of file labelRangeI.H.
References IntRange< IntType >::rend_value().
|
inlinenoexcept |
Definition at line 88 of file labelRangeI.H.
References IntRange< IntType >::end_value().
Referenced by Foam::BitOps::set(), bitSet::set(), and bitSet::unset().
|
noexcept |
Definition at line 74 of file labelRange.C.
Referenced by Foam::BitOps::set(), and bitSet::set().
|
inlinenoexcept |
Definition at line 95 of file labelRangeI.H.
References reset().
Referenced by labelRanges::remove().
Foam::List< Foam::label > labels | ( | ) | const |
Definition at line 59 of file labelRange.C.
bool overlaps | ( | const labelRange & | range, |
bool | touches = false |
||
) | const |
Definition at line 89 of file labelRange.C.
References range.
Referenced by labelRanges::add().
Foam::labelRange join | ( | const labelRange & | range | ) | const |
Definition at line 112 of file labelRange.C.
References IntRange< IntType >::clampSize(), Foam::stringOps::lower(), Foam::max(), Foam::min(), range, and Foam::stringOps::upper().
Referenced by labelRanges::add().
Foam::labelRange subset | ( | const labelRange & | range | ) | const |
Definition at line 137 of file labelRange.C.
References Foam::stringOps::lower(), Foam::max(), Foam::min(), range, and Foam::stringOps::upper().
Foam::labelRange subset | ( | const label | start, |
const label | size | ||
) | const |
Definition at line 155 of file labelRange.C.
References Foam::stringOps::lower(), Foam::max(), Foam::min(), and Foam::stringOps::upper().
Foam::labelRange subset0 | ( | const label | size | ) | const |
Definition at line 175 of file labelRange.C.
References Foam::stringOps::lower(), Foam::max(), Foam::min(), and Foam::stringOps::upper().
Referenced by UList< Foam::wordRe >::validateRange().
|
inlinenoexcept |
Definition at line 179 of file labelRange.H.
References bool, and IntRange< label >::size().
|
static |
Definition at line 69 of file labelRange.H.
Referenced by labelRanges::remove().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.