rasdaman API
|
#include <point.hh>
Public Member Functions | |
r_Point (r_Dimension) | |
constructor getting dimensionality for stream initializing More... | |
r_Point & | operator<< (r_Range) throw ( r_Einit_overflow ) |
stream-input operator for stream initializing More... | |
r_Point (char *) throw ( r_Error ) | |
constructor taking string representation (e.g. [ 1, 2, 3]) More... | |
r_Point () | |
default constructor More... | |
r_Point (const r_Point &) | |
copy constructor More... | |
~r_Point () | |
destructor: cleanup dynamic memory More... | |
r_Range | operator[] (r_Dimension) const throw ( r_Eindex_violation ) |
subscriptor for read access More... | |
r_Range & | operator[] (r_Dimension) throw ( r_Eindex_violation ) |
subscriptor for write access More... | |
const r_Point & | operator= (const r_Point &) |
assignment: cleanup + copy More... | |
const int | compare_with (const r_Point &p) const |
compares this point with the given point. More... | |
bool | operator== (const r_Point &) const |
equal operator More... | |
bool | operator!= (const r_Point &) const |
non equal operator - negation of equal operator More... | |
r_Point | operator+ (const r_Point &) const throw ( r_Edim_mismatch ) |
vector addition More... | |
r_Point | operator- (const r_Point &) const throw ( r_Edim_mismatch ) |
vector subtraction More... | |
r_Point | operator* (const r_Point &) const throw ( r_Edim_mismatch ) |
vector multiplication More... | |
r_Dimension | dimension () const |
get dimensionality More... | |
void | print_status (std::ostream &s=std::cout) const |
writes the state of the object to the specified stream More... | |
char * | get_string_representation () const |
gives back the string representation More... | |
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::r_Point | ( | r_Dimension | ) |
constructor getting dimensionality for stream initializing
r_Point::r_Point | ( | char * | ) | ||
throw | ( | r_Error | |||
) |
constructor taking string representation (e.g. [ 1, 2, 3])
r_Point::r_Point | ( | ) |
default constructor
r_Point::r_Point | ( | const r_Point & | ) |
copy constructor
r_Point::~r_Point | ( | ) |
destructor: cleanup dynamic memory
|
inline |
compares this point with the given point.
|
inline |
get dimensionality
char* r_Point::get_string_representation | ( | ) | const |
gives back the string representation
bool r_Point::operator!= | ( | const r_Point & | ) | const |
non equal operator - negation of equal operator
Two points are equal if they have the same number of dimensions and the same values.
r_Point r_Point::operator* | ( | const r_Point & | ) | const | |
throw | ( | r_Edim_mismatch | |||
) |
vector multiplication
r_Point r_Point::operator+ | ( | const r_Point & | ) | const | |
throw | ( | r_Edim_mismatch | |||
) |
vector addition
r_Point r_Point::operator- | ( | const r_Point & | ) | const | |
throw | ( | r_Edim_mismatch | |||
) |
vector subtraction
r_Point& r_Point::operator<< | ( | r_Range | ) | ||
throw | ( | r_Einit_overflow | |||
) |
stream-input operator for stream initializing
bool r_Point::operator== | ( | const r_Point & | ) | const |
equal operator
Returns 0 if this == p, -1 if this < p, 1 if this > p (considering the coordinates in decreasing order of magnitude).
r_Range r_Point::operator[] | ( | r_Dimension | ) | const | |
throw | ( | r_Eindex_violation | |||
) |
subscriptor for read access
r_Range& r_Point::operator[] | ( | r_Dimension | ) | ||
throw | ( | r_Eindex_violation | |||
) |
subscriptor for write access
void r_Point::print_status | ( | std::ostream & | s = std::cout | ) | const |
writes the state of the object to the specified stream