180 for (
UInt i = 0; i < std::min(D, D2); ++i)
345 std::ostream& operator<<(std::ostream& os, const DIntervalBase<D>& rhs)
347 os <<
"--DIntervalBase BEGIN--" << std::endl;
348 os <<
"MIN --> " << rhs.
minPosition() << std::endl;
349 os <<
"MAX --> " << rhs.maxPosition() << std::endl;
350 os <<
"--DIntervalBase END--" << std::endl;
DIntervalBase(const DIntervalBase &rhs)
Copy constructor.
Definition: DIntervalBase.h:86
void normalize_()
normalization to keep all dimensions in the right geometrical order (min_[X] < max_[X]) ...
Definition: DIntervalBase.h:314
void setMaxX(CoordinateType const c)
Mutator for min_ coordinate of the larger point.
Definition: DIntervalBase.h:278
PositionType min_
lower left point
Definition: DIntervalBase.h:308
DIntervalBase(const std::pair< PositionType, PositionType > &pair)
Protected constructor for the construction of static instances.
Definition: DIntervalBase.h:326
~DIntervalBase()
Destructor.
Definition: DIntervalBase.h:101
void setMinY(CoordinateType const c)
Mutator for max_ coordinate of the smaller point.
Definition: DIntervalBase.h:271
Size< TNeedle >::Type position(const PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:561
CoordinateType maxX() const
Accessor for min_ coordinate maximum.
Definition: DIntervalBase.h:252
void setMin(PositionType const &position)
Mutator for minimum position.
Definition: DIntervalBase.h:138
DIntervalBase & operator=(const DIntervalBase &rhs)
Assignment operator.
Definition: DIntervalBase.h:93
void setMaxY(CoordinateType const c)
Mutator for max_ coordinate of the larger point.
Definition: DIntervalBase.h:285
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
CoordinateType height() const
Returns the height of the area i.e. the difference of dimension one (Y).
Definition: DIntervalBase.h:298
Definition: DIntervalBase.h:64
static DIntervalBase const zero
instance with all positions zero
Definition: DIntervalBase.h:232
void setMax(PositionType const &position)
Mutator for maximum position.
Definition: DIntervalBase.h:153
PositionType const & maxPosition() const
Accessor to maximum position.
Definition: DIntervalBase.h:127
DPosition< D > PositionType
Position type.
Definition: DIntervalBase.h:66
DIntervalBase()
Default constructor.
Definition: DIntervalBase.h:79
bool operator!=(const DIntervalBase &rhs) const
Equality operator.
Definition: DIntervalBase.h:198
PositionType center() const
Returns the center of the interval.
Definition: DIntervalBase.h:215
void assign(const DIntervalBase< D2 > rhs)
Assignment from a DIntervalBase of different dimensions.
Definition: DIntervalBase.h:178
static const DPosition zero()
all zero
Definition: DPosition.h:360
DIntervalBase(PositionType const &minimum, PositionType const &maximum)
This constructor sets min_ and max_ directly.
Definition: DIntervalBase.h:108
CoordinateType minY() const
Accessor for max_ coordinate minimum.
Definition: DIntervalBase.h:246
CoordinateType maxY() const
Accessor for max_ coordinate maximum.
Definition: DIntervalBase.h:258
CoordinateType width() const
Returns the width of the area i.e. the difference of dimension zero (X).
Definition: DIntervalBase.h:292
PositionType diagonal() const
Returns the diagonal of the area, i.e. max_ - min_.
Definition: DIntervalBase.h:224
PositionType max_
upper right point
Definition: DIntervalBase.h:311
A base class for D-dimensional interval.
Definition: DIntervalBase.h:55
CoordinateType minX() const
Accessor for min_ coordinate minimum.
Definition: DIntervalBase.h:240
void setMinX(CoordinateType const c)
Mutator for min_ coordinate of the smaller point.
Definition: DIntervalBase.h:264
void setMinMax(PositionType const &min, PositionType const &max)
Mutator for minimum and maximum position.
Definition: DIntervalBase.h:165
static DIntervalBase const empty
empty instance
Definition: DIntervalBase.h:230
bool operator==(const DIntervalBase &rhs) const
Equality operator.
Definition: DIntervalBase.h:192
void clear()
Make the interval empty.
Definition: DIntervalBase.h:204
PositionType::CoordinateType CoordinateType
Coordinate type of the positions.
Definition: DIntervalBase.h:68
PositionType const & minPosition() const
Accessor to minimum position.
Definition: DIntervalBase.h:121