|
OpenMS
2.5.0
|
Go to the documentation of this file.
183 for (
UInt i = 0; i < std::min(D, D2); ++i)
350 os <<
"--DIntervalBase BEGIN--" << std::endl;
351 os <<
"MIN --> " << rhs.
minPosition() << std::endl;
352 os <<
"MAX --> " << rhs.
maxPosition() << std::endl;
353 os <<
"--DIntervalBase END--" << std::endl;
DPosition< D > PositionType
Position type.
Definition: DIntervalBase.h:66
void setMaxY(CoordinateType const c)
Mutator for max_ coordinate of the larger point.
Definition: DIntervalBase.h:288
Definition: DIntervalBase.h:64
static const DIntervalBase zero
instance with all positions zero
Definition: DIntervalBase.h:235
DIntervalBase(const std::pair< PositionType, PositionType > &pair)
Protected constructor for the construction of static instances.
Definition: DIntervalBase.h:329
CoordinateType minX() const
Accessor for min_ coordinate minimum.
Definition: DIntervalBase.h:243
void setMin(PositionType const &position)
Mutator for minimum position.
Definition: DIntervalBase.h:141
PositionType min_
lower left point
Definition: DIntervalBase.h:311
~DIntervalBase()
Destructor.
Definition: DIntervalBase.h:104
void normalize_()
normalization to keep all dimensions in the right geometrical order (min_[X] < max_[X])
Definition: DIntervalBase.h:317
void clear()
Make the interval empty.
Definition: DIntervalBase.h:207
void setMaxX(CoordinateType const c)
Mutator for min_ coordinate of the larger point.
Definition: DIntervalBase.h:281
PositionType::CoordinateType CoordinateType
Coordinate type of the positions.
Definition: DIntervalBase.h:68
DIntervalBase()
Default constructor.
Definition: DIntervalBase.h:79
PositionType center() const
Returns the center of the interval.
Definition: DIntervalBase.h:218
CoordinateType minY() const
Accessor for max_ coordinate minimum.
Definition: DIntervalBase.h:249
void assign(const DIntervalBase< D2 > rhs)
Assignment from a DIntervalBase of different dimensions.
Definition: DIntervalBase.h:181
void setMax(PositionType const &position)
Mutator for maximum position.
Definition: DIntervalBase.h:156
PositionType diagonal() const
Returns the diagonal of the area, i.e. max_ - min_.
Definition: DIntervalBase.h:227
CoordinateType height() const
Returns the height of the area i.e. the difference of dimension one (Y).
Definition: DIntervalBase.h:301
PositionType const & maxPosition() const
Accessor to maximum position.
Definition: DIntervalBase.h:130
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
DIntervalBase(PositionType const &minimum, PositionType const &maximum)
This constructor sets min_ and max_ directly.
Definition: DIntervalBase.h:111
void setMinMax(PositionType const &min, PositionType const &max)
Mutator for minimum and maximum position.
Definition: DIntervalBase.h:168
bool operator!=(const DIntervalBase &rhs) const
Equality operator.
Definition: DIntervalBase.h:201
PositionType max_
upper right point
Definition: DIntervalBase.h:314
void setMinX(CoordinateType const c)
Mutator for min_ coordinate of the smaller point.
Definition: DIntervalBase.h:267
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
DIntervalBase(const DIntervalBase &rhs)
Copy constructor.
Definition: DIntervalBase.h:86
CoordinateType maxY() const
Accessor for max_ coordinate maximum.
Definition: DIntervalBase.h:261
A base class for D-dimensional interval.
Definition: DIntervalBase.h:55
PositionType const & minPosition() const
Accessor to minimum position.
Definition: DIntervalBase.h:124
std::ostream & operator<<(std::ostream &os, const DIntervalBase< D > &rhs)
Print the contents to a stream.
Definition: DIntervalBase.h:348
CoordinateType maxX() const
Accessor for min_ coordinate maximum.
Definition: DIntervalBase.h:255
bool operator==(const DIntervalBase &rhs) const
Equality operator.
Definition: DIntervalBase.h:195
void setMinY(CoordinateType const c)
Mutator for max_ coordinate of the smaller point.
Definition: DIntervalBase.h:274
CoordinateType width() const
Returns the width of the area i.e. the difference of dimension zero (X).
Definition: DIntervalBase.h:295
static const DIntervalBase empty
empty instance
Definition: DIntervalBase.h:233
Size< TNeedle >::Type position(const PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:561