63 explicit r_Point(std::vector<r_Range> pointArg);
146 void checkDimensionMatch(
const r_Point &pt)
const;
149 std::vector<r_Range> points;
150 size_t streamIndex{};
Class r_Point represents an n-dimensional point vector.
Definition: point.hh:43
r_Point operator-(const r_Point &) const
vector subtraction
void print_status(std::ostream &s) const
writes the state of the object to the specified stream
r_Point(r_Range, r_Range, r_Range, r_Range)
r_Point(r_Range, r_Range, r_Range, r_Range, r_Range)
r_Point(r_Range, r_Range)
r_Point(char *)
constructor taking string representation (e.g. [ 1, 2, 3])
bool operator==(const r_Point &) const
Returns 0 if this == p, -1 if this < p, 1 if this > p (considering the coordinates in decreasing orde...
r_Point operator*(const r_Range newElement) const
vector multiplication with a scalar
char * get_string_representation() const
gives back the string representation
r_Point operator+(const r_Point &) const
vector addition
r_Range operator[](r_Dimension) const
subscriptor for read access
r_Point & operator<<(r_Range)
stream-input operator for stream initializing
r_Range & at(r_Dimension)
subscriptor for write access with bound-checking
bool operator>(const r_Point &) const
r_Range value_type
Definition: point.hh:46
int compare_with(const r_Point &p) const
compares this point with the given point.
bool operator<(const r_Point &) const
r_Point(std::vector< r_Range > pointArg)
r_Point operator*(const r_Point &) const
vector multiplication
r_Point()=default
default constructor
r_Range & operator[](r_Dimension)
subscriptor for write access
bool operator<=(const r_Point &) const
r_Dimension DimType
Definition: point.hh:47
r_Point & operator=(const r_Point &)=default
assignment: cleanup + copy
bool operator!=(const r_Point &) const
Two points are equal if they have the same number of dimensions and the same values.
r_Dimension dimension() const
get dimensionality
bool operator>=(const r_Point &) const
~r_Point()=default
destructor: cleanup dynamic memory
std::vector< r_Range > get_coordinates() const
get vectorized version of the stored point
r_Point(r_Range, r_Range, r_Range)
r_Range at(r_Dimension) const
subscriptor for read access with bound-checking
std::string to_string(bool wkt=false) const
The string representation delivered by this method is allocated using malloc() and has to be free us...
r_Point(r_Dimension)
constructor getting dimensionality for stream initializing
std::int64_t r_Range
for axis indexing, e.g.
Definition: mddtypes.hh:53
std::uint32_t r_Dimension
number of dimensions in r_Point and r_Minterval.
Definition: mddtypes.hh:56
std::ostream & operator<<(std::ostream &s, const r_Point &d)