rasdaman complete source
Public Member Functions | List of all members
r_Point Class Reference

#include <point.hh>

Public Member Functions

 r_Point (r_Dimension)
 constructor getting dimensionality for stream initializing More...
 
r_Pointoperator<< (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_Rangeoperator[] (r_Dimension) throw ( r_Eindex_violation )
 subscriptor for write access More...
 
const r_Pointoperator= (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)
 

Constructor & Destructor Documentation

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 ( r_Range  ,
r_Range   
)
r_Point::r_Point ( r_Range  ,
r_Range  ,
r_Range   
)
r_Point::r_Point ( r_Range  ,
r_Range  ,
r_Range  ,
r_Range   
)
r_Point::r_Point ( r_Range  ,
r_Range  ,
r_Range  ,
r_Range  ,
r_Range   
)
r_Point::r_Point ( )

default constructor

r_Point::r_Point ( const r_Point )

copy constructor

r_Point::~r_Point ( )

destructor: cleanup dynamic memory

Member Function Documentation

const int r_Point::compare_with ( const r_Point p) const
inline

compares this point with the given point.

r_Dimension r_Point::dimension ( ) const
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

const r_Point& r_Point::operator= ( const r_Point )

assignment: cleanup + copy

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


The documentation for this class was generated from the following file: