45 list_(endLabelRanges_),
60 index_ = subIndex_ = -1;
65 inline bool Foam::labelRanges::const_iterator::operator==
72 this->index_ == iter.index_
73 && this->subIndex_ == iter.subIndex_
78 inline bool Foam::labelRanges::const_iterator::operator!=
89 return list_[index_][subIndex_];
95 return list_[index_][subIndex_];
102 if (++subIndex_ >= list_[index_].
size())
106 if (++index_ >= list_.
size())
109 index_ = subIndex_ = -1;
#define forAll(list, i)
Loop across all elements in list.
bool empty() const
Return true if the UList is empty (ie, size() is zero)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void size(const label)
Override size to be inconsistent with allocated storage.
labelRanges()
Construct null.
const_iterator & operator++()
const const_iterator & end() const
const_iterator set to beyond the end of the list
const_iterator cbegin() const
const_iterator set to the beginning of the list
bool contains(const label) const
Return true if the value is within any of the ranges.
bool operator==(const const_iterator &) const
const_iterator()
Construct null - equivalent to an 'end' position.
label size() const
Return the number of elements in the UList.
const const_iterator & cend() const
const_iterator set to beyond the end of the list
friend Ostream & operator(Ostream &, const DynamicList< labelRange, 0, 2, 1 > &)
const_iterator begin() const
const_iterator set to the beginning of the list