![]() |
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 More... | |
| r_Point (r_Dimension) | |
| constructor getting dimensionality for stream initializing More... | |
| r_Point (char *) | |
| constructor taking string representation (e.g. [ 1, 2, 3]) More... | |
| 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 More... | |
| r_Point & | operator<< (r_Range) |
| stream-input operator for stream initializing More... | |
| r_Range | operator[] (r_Dimension) const |
| subscriptor for read access More... | |
| r_Range & | operator[] (r_Dimension) |
| subscriptor for write access More... | |
| r_Range | at (r_Dimension) const |
| subscriptor for read access with bound-checking More... | |
| r_Range & | at (r_Dimension) |
| subscriptor for write access with bound-checking More... | |
| r_Point & | operator= (const r_Point &)=default |
| assignment: cleanup + copy More... | |
| int | compare_with (const r_Point &p) const |
| compares this point with the given point. More... | |
| 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). More... | |
| bool | operator!= (const r_Point &) const |
| Two points are equal if they have the same number of dimensions and the same values. More... | |
| 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 More... | |
| r_Point | operator- (const r_Point &) const |
| vector subtraction More... | |
| r_Point | operator* (const r_Point &) const |
| vector multiplication More... | |
| r_Point | operator* (const r_Range newElement) const |
| vector multiplication with a scalar More... | |
| r_Dimension | dimension () const |
| get dimensionality More... | |
| std::vector< r_Range > | get_coordinates () const |
| get vectorized version of the stored point More... | |
| void | print_status (std::ostream &s) const |
| writes the state of the object to the specified stream More... | |
| char * | get_string_representation () const |
| gives back the string representation More... | |
| 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. More... | |
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.
1.8.17