![]() |
rasdaman client API 10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
|
Class r_Point represents an n-dimensional point vector. More...
#include <point.hh>
Public Types | |
| using | value_type = r_Range |
| using | DimType = r_Dimension |
Public Member Functions | |
| r_Point ()=default | |
| default constructor | |
| r_Point (r_Dimension) | |
| constructor getting dimensionality for stream initializing | |
| r_Point (char *) | |
| constructor taking string representation (e.g. [ 1, 2, 3]) | |
| r_Point (r_Range) | |
| r_Point (r_Range, r_Range) | |
| r_Point (r_Range, r_Range, r_Range) | |
| r_Point (r_Range, r_Range, r_Range, r_Range) | |
| r_Point (r_Range, r_Range, r_Range, r_Range, r_Range) | |
| r_Point (std::vector< r_Range > pointArg) | |
| ~r_Point ()=default | |
| destructor: cleanup dynamic memory | |
| r_Point & | operator<< (r_Range) |
| stream-input operator for stream initializing | |
| r_Range | operator[] (r_Dimension) const |
| subscriptor for read access | |
| r_Range & | operator[] (r_Dimension) |
| subscriptor for write access | |
| r_Range | at (r_Dimension) const |
| subscriptor for read access with bound-checking | |
| r_Range & | at (r_Dimension) |
| subscriptor for write access with bound-checking | |
| r_Point & | operator= (const r_Point &)=default |
| assignment: cleanup + copy | |
| int | compare_with (const r_Point &p) const |
| compares this point with the given point. | |
| bool | operator== (const r_Point &) const |
| Returns 0 if this == p, -1 if this < p, 1 if this > p (considering the coordinates in decreasing order of magnitude). | |
| bool | operator!= (const r_Point &) const |
| Two points are equal if they have the same number of dimensions and the same values. | |
| bool | operator< (const r_Point &) const |
| bool | operator> (const r_Point &) const |
| bool | operator<= (const r_Point &) const |
| bool | operator>= (const r_Point &) const |
| r_Point | operator+ (const r_Point &) const |
| vector addition | |
| r_Point | operator- (const r_Point &) const |
| vector subtraction | |
| r_Point | operator* (const r_Point &) const |
| vector multiplication | |
| r_Point | operator* (const r_Range newElement) const |
| vector multiplication with a scalar | |
| r_Dimension | dimension () const |
| get dimensionality | |
| std::vector< r_Range > | get_coordinates () const |
| get vectorized version of the stored point | |
| void | print_status (std::ostream &s) const |
| writes the state of the object to the specified stream | |
| char * | get_string_representation () const |
| gives back the string representation | |
| std::string | to_string (bool wkt=false) const |
The string representation delivered by this method is allocated using malloc() and has to be free using free() in the end. | |
Class r_Point represents an n-dimensional point vector.
| using r_Point::DimType = r_Dimension |
| using r_Point::value_type = r_Range |
|
default |
default constructor
|
explicit |
constructor getting dimensionality for stream initializing
|
explicit |
constructor taking string representation (e.g. [ 1, 2, 3])
|
explicit |
|
explicit |
|
default |
destructor: cleanup dynamic memory
| r_Range & r_Point::at | ( | r_Dimension | ) |
subscriptor for write access with bound-checking
| r_Range r_Point::at | ( | r_Dimension | ) | const |
subscriptor for read access with bound-checking
| int r_Point::compare_with | ( | const r_Point & | p | ) | const |
compares this point with the given point.
| r_Dimension r_Point::dimension | ( | ) | const |
get dimensionality
| std::vector< r_Range > r_Point::get_coordinates | ( | ) | const |
get vectorized version of the stored point
| char * r_Point::get_string_representation | ( | ) | const |
gives back the string representation
| bool r_Point::operator!= | ( | const r_Point & | ) | const |
Two points are equal if they have the same number of dimensions and the same values.
non equal operator - negation of equal operator
| bool r_Point::operator< | ( | const r_Point & | ) | const |
| bool r_Point::operator<= | ( | const r_Point & | ) | const |
| bool r_Point::operator== | ( | const r_Point & | ) | const |
Returns 0 if this == p, -1 if this < p, 1 if this > p (considering the coordinates in decreasing order of magnitude).
equal operator
| bool r_Point::operator> | ( | const r_Point & | ) | const |
| bool r_Point::operator>= | ( | const r_Point & | ) | const |
| r_Range & r_Point::operator[] | ( | r_Dimension | ) |
subscriptor for write access
| r_Range r_Point::operator[] | ( | r_Dimension | ) | const |
subscriptor for read access
| void r_Point::print_status | ( | std::ostream & | s | ) | const |
writes the state of the object to the specified stream
| std::string r_Point::to_string | ( | bool | wkt = false | ) | const |
The string representation delivered by this method is allocated using malloc() and has to be free using free() in the end.
It can be used to construct a r_Point again with a special constructor provided. The string representation is build using print_status(). If you want the output of get_string_representation(), but you do not want to worry about memory allocation/deallocation.