38 #ifndef Foam_labelRanges_H 39 #define Foam_labelRanges_H 51 Istream&
operator>>(Istream& is, labelRanges& ranges);
52 Ostream&
operator<<(Ostream& is,
const labelRanges& ranges);
104 inline bool contains(
const label value)
const;
107 bool found(
const label value)
const {
return contains(value); }
184 #include "labelRangesI.H" labelRanges()=default
Default construct.
const_iterator begin() const noexcept
A const_iterator set to the beginning of the list.
friend Ostream & operator(Ostream &os, const DynamicList< Foam::labelRange, 16 > &list)
Write to Ostream.
srcOptions insert("case", fileName(rootDirSource/caseDirSource))
A range or interval of labels defined by a start and a size.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
const const_iterator cend() const noexcept
A const_iterator set to beyond the end of the list.
bool found(const label value) const
True if the value is contained within any of the sub-ranges.
bool add(const labelRange &range)
Add the range to the list.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
Istream & operator>>(Istream &, directionInfo &)
const const_iterator end() const noexcept
A const_iterator set to beyond the end of the list.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool contains(const label value) const
True if the value is contained within any of the sub-ranges.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
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.