55 return (*list_)[index_][subIndex_];
63 if (++subIndex_ >= (*list_)[index_].
size())
85 Foam::labelRanges::const_iterator::
94 && subIndex_ == iter.subIndex_
100 Foam::labelRanges::const_iterator::
106 return !(*
this == iter);
145 : static_cast<const StorageContainer&>(*
this)
148 if (
range.contains(value))
labelRanges()=default
Default construct.
const_iterator begin() const noexcept
A const_iterator set to the beginning of the list.
A range or interval of labels defined by a start and a size.
label operator*() const
Return the current label.
const const_iterator cend() const noexcept
A const_iterator set to beyond the end of the list.
const_iterator & operator++()
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
const const_iterator end() const noexcept
A const_iterator set to beyond the end of the list.
bool contains(const label value) const
True if the value is contained within any of the sub-ranges.
label size() const noexcept
The number of elements in the List.
const T * const_iterator
Random access iterator for traversing a UList.
constexpr const_iterator(const labelRanges *list, const label i=0) noexcept
Construct from range list at given index.
const_iterator cbegin() const noexcept
A const_iterator set to the beginning of the list.
Forward input iterator with const access.