#include <point.hh>
Inheritance diagram for oln::abstract::point< Exact >:
Public Types | |
enum | { dim = point_traits<Exact>::dim } |
typedef point< Exact > | self_type |
typedef Exact | exact_type |
typedef point_traits< Exact >::dpoint_type | dpoint_type |
Public Member Functions | |
const exact_type & | point_ref () const |
Return the current point casted in exact_type. | |
coord | nth (const unsigned dim) const |
Give the value of the nth coordinate of the point. | |
coord & | nth (const unsigned dim) |
Return a reference to the nth coordinate of the point. | |
exact_type & | operator+= (const abstract::dpoint< dpoint_type > &dp) |
Add a delta point dp to the current point. | |
exact_type & | operator-= (const abstract::dpoint< dpoint_type > &dp) |
Subtract a delta point dp from the current point. | |
dpoint_type | operator- (const self_type &p) const |
Subtract a point p from the current point. | |
exact_type | operator+ (const abstract::dpoint< dpoint_type > &dp) const |
Give the result of the addition of a delta point dp and the current point. | |
exact_type | operator- (const abstract::dpoint< dpoint_type > &dp) const |
Give the result of the subtraction of a delta point dp and the current point. | |
exact_type | operator- () const |
Return a point whose coordinates are the opposite of the current point coordinates. | |
bool | operator== (const self_type &p) const |
Test if p and the current point have the same coordinates. | |
bool | operator!= (const self_type &p) const |
Test if p and the current point do not have the same coordinates. | |
Static Public Member Functions | |
static std::string | name () |
Protected Member Functions | |
point () |
Definition at line 71 of file point.hh.
exact_type& oln::abstract::point< Exact >::operator+= | ( | const abstract::dpoint< dpoint_type > & | dp | ) | [inline] |
exact_type& oln::abstract::point< Exact >::operator-= | ( | const abstract::dpoint< dpoint_type > & | dp | ) | [inline] |
dpoint_type oln::abstract::point< Exact >::operator- | ( | const self_type & | p | ) | const [inline] |
exact_type oln::abstract::point< Exact >::operator+ | ( | const abstract::dpoint< dpoint_type > & | dp | ) | const [inline] |
exact_type oln::abstract::point< Exact >::operator- | ( | const abstract::dpoint< dpoint_type > & | dp | ) | const [inline] |
bool oln::abstract::point< Exact >::operator== | ( | const self_type & | p | ) | const [inline] |
Test if p and the current point have the same coordinates.
Definition at line 184 of file point.hh.
00185 { 00186 for (unsigned i = 0; i < dim; ++i) 00187 if (p.nth(i) != nth(i)) 00188 return false; 00189 return true; 00190 }
bool oln::abstract::point< Exact >::operator!= | ( | const self_type & | p | ) | const [inline] |
Test if p and the current point do not have the same coordinates.
Definition at line 201 of file point.hh.
00202 { 00203 for (unsigned i = 0; i < dim; ++i) 00204 if (p.nth(i) != nth(i)) 00205 return true; 00206 return false; 00207 }