173       for (
UInt i = 0; i != D; i++)
   185       if (x < 
min_[0]) 
return false;
   187       if (x >= 
max_[0]) 
return false;
   189       if (y < 
min_[1]) 
return false;
   191       if (y >= 
max_[1]) 
return false;
   206       for (
Size i = 0; i != D; ++i)
   208         united_min[i] = 
min_[i] < other_min[i] ? 
min_[i] : other_min[i];
   209         united_max[i] = 
max_[i] > other_max[i] ? 
max_[i] : other_max[i];
   211       united_range.
setMinMax(united_min, united_max);
   227         for (
Size i = 0; i != D; i++)
   238       for (
Size i = 0; i != D; i++)
   247       for (
Size i = 0; i != D; i++)
   273       for (
Size i = 0; i != D; i++)
   282       for (
Size i = 0; i != D; i++)
   295       for (
UInt i = 0; i != D; i++)
   323       for (
UInt i = 0; i != D; ++i)
   337   std::ostream& operator<<(std::ostream& os, const DRange<D>& area)
   339     os << 
"--DRANGE BEGIN--" << std::endl;
   340     os << 
"MIN --> " << area.min_ << std::endl;
   341     os << 
"MAX --> " << area.max_ << std::endl;
   342     os << 
"--DRANGE END--" << std::endl;
 DRange united(const DRange< D > &other_range) const
Returns the smallest range containing this range and other_range. 
Definition: DRange.h:197
 
Base::PositionType PositionType
Position type. 
Definition: DRange.h:74
 
No intersection. 
Definition: DRange.h:80
 
DRange(CoordinateType minx, CoordinateType miny, CoordinateType maxx, CoordinateType maxy)
Convenient constructor for DRange<2> 
Definition: DRange.h:121
 
PositionType min_
lower left point 
Definition: DIntervalBase.h:308
 
bool encloses(const PositionType &position) const
Checks whether this range contains a certain point. 
Definition: DRange.h:171
 
Size< TNeedle >::Type position(const PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:561
 
Internal::DIntervalBase< D > Base
Base class type. 
Definition: DRange.h:72
 
PositionType min_
lower left point 
Definition: DIntervalBase.h:308
 
bool operator==(const DRange &rhs) const
Equality operator. 
Definition: DRange.h:154
 
#define OPENMS_PRECONDITION(condition, message)
Precondition macro. 
Definition: openms/include/OpenMS/CONCEPT/Macros.h:106
 
DIntervalBase & operator=(const DIntervalBase &rhs)
Assignment operator. 
Definition: DIntervalBase.h:93
 
unsigned int UInt
Unsigned integer type. 
Definition: Types.h:94
 
void extend(double factor)
Extends the range in all dimensions by a certain multiplier. 
Definition: DRange.h:316
 
DRangeIntersection intersects(const DRange &range) const
Checks how this range intersects with another range. 
Definition: DRange.h:221
 
bool operator==(const Base &rhs) const
Equality operator. 
Definition: DRange.h:160
 
Main OpenMS namespace. 
Definition: FeatureDeconvolution.h:46
 
PositionType max_
upper right point 
Definition: DIntervalBase.h:311
 
PositionType const  & maxPosition() const
Accessor to maximum position. 
Definition: DIntervalBase.h:127
 
DRange()
Default constructor. 
Definition: DRange.h:97
 
DRange & operator=(const DRange &rhs)
Assignment operator. 
Definition: DRange.h:131
 
bool encloses(CoordinateType x, CoordinateType y) const
2D-version of encloses for convenience only 
Definition: DRange.h:183
 
DRange(const DRange &range)
Copy constructor. 
Definition: DRange.h:109
 
Base::CoordinateType CoordinateType
Coordinate type of the positions. 
Definition: DRange.h:76
 
bool isIntersected(const DRange &range) const
Checks whether this range intersects with another range. 
Definition: DRange.h:263
 
DRange(const Base &range)
Copy constructor for the base class. 
Definition: DRange.h:115
 
Exception indicating that an invalid parameter was handed over to an algorithm. 
Definition: Exception.h:347
 
DRange & operator=(const Base &rhs)
Assignment operator for the base class. 
Definition: DRange.h:138
 
A D-dimensional half-open interval. 
Definition: DRange.h:60
 
PositionType max_
upper right point 
Definition: DIntervalBase.h:311
 
~DRange()
Destructor. 
Definition: DRange.h:145
 
bool isEmpty() const
Checks if the range is empty. 
Definition: DRange.h:293
 
A base class for D-dimensional interval. 
Definition: DIntervalBase.h:55
 
size_t Size
Size type e.g. used as variable which can hold result of size() 
Definition: Types.h:127
 
DRangeIntersection
Types that describe the kind of intersection between two ranges. 
Definition: DRange.h:78
 
void setMinMax(PositionType const &min, PositionType const &max)
Mutator for minimum and maximum position. 
Definition: DIntervalBase.h:165
 
bool operator==(const DIntervalBase &rhs) const
Equality operator. 
Definition: DIntervalBase.h:192
 
Intersection. 
Definition: DRange.h:81
 
DRange(const PositionType &lower, const PositionType &upper)
Constructor that takes two Points and constructs a range. 
Definition: DRange.h:103
 
One contains the other. 
Definition: DRange.h:82
 
PositionType const  & minPosition() const
Accessor to minimum position. 
Definition: DIntervalBase.h:121