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.
friend Ostream & operator(Ostream &, const DynamicList< labelRange, SizeInc, SizeMult, SizeDiv > &)
label size() const
Return the number of elements in the UList.
const T * const_iterator
Random access iterator for traversing UList.
bool operator==(const UList< T > &) const
Equality operation on ULists of the same type.
const_iterator & operator++()
const_iterator()
Construct null - equivalent to an 'end' position.
bool contains(const label) const
Return true if the value is within any of the ranges.
const const_iterator & cend() const
const_iterator set to beyond the end of the list
labelRanges()
Construct null.
const_iterator cbegin() const
const_iterator set to the beginning of the list
const const_iterator & end() const
const_iterator set to beyond the end of the list
const_iterator begin() const
const_iterator set to the beginning of the list
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.