! (*this == that)
{
return ! (*this == that);
}
private:
Constructor
\param[in] index range element value.
Index range element value
int i_;
};
Start of Range.
Iterator begin() const { return { this->begin_ }; }
End of Range.
Iterator end() const { return { this->end_ }; }
Predicate for empty index range.
bool empty() const { return this->end_ <= this->begin_; }
Name of region set
to which
this index range is attached.
std::string_view regionSet() const { return this->region_; }
friend class RegionSetMatchResult;
private:
Beginning of index range
int begin_{};
End of Range
int end_{};
Name of region set
to which
this region index range is attached
std::string_view region_{};
Default Constructor.
Empty range.
For use by RegionSetMatchResult only.
RegionIndexRange() = default;
Non-Empty Range
For use by RegionSetMatchResult only.
\param[in] beginID Minimum region index value.
\param[in] endID One more than the maximum region index value.
\param[in] region Name of region set
to which
this index range
is attached.
RegionIndexRange(int beginID, int endID, std::string_view region)
: begin_ { beginID }
, end_ { endID }
, region_ { region }
{}
};
Predicate for whether or not result set is empty.
\return Whether or not result set is empty.
bool empty() const
{
return this->regionIDRange_.empty();
}
Predicate
for whether or not result set applies
to a single
region in a single region set.
\return Whether or not result set is a single region in a single
region set. Useful
to distinguish whether or not
this result set
generates a scalar UDQ or a UDQ set in the context of a region
level UDQ.
bool isScalar() const
{
return (this->regionIDRange_.size() == std::vector<int>::size_type{2})
&& (this->regionIDRange_.back() == this->regionIDRange_.front() + 1);
}
Retrieve list of (MS) well names covered by this result set.
\return List MS well names covered by this result set.
std::vector<std::string_view> regionSets() const;
Retrieve number of region sets covered by this result set.
\return Number of region sets covered by this result set.
std::size_t numRegionSets() const
{
return this->regionSets_.size();
}
Retrieve result set's region indices for a single region set.
\param[in] regSet Named region set--e.g., FIPNUM or FIPABC. Should
usually be one of the items in the return value from \code
regionSets()
Simple forward iterator over a region index range.
Definition RegionSetMatcher.hpp:52
Region Index Range for Single Region Set.
Definition RegionSetMatcher.hpp:48
constexpr double to(const double q, const double unit)
Convert from internal units of measurements to equivalent external units of measurements.
Definition Units.hpp:250
.