Generic point class. More...
#include <point.hh>

Public Types | |
| enum | { dim = G::dim } |
| typedef C | coord |
| Coordinate associated type. | |
| typedef dpoint< G, C > | delta |
| Delta associated type. | |
| typedef dpoint< G, C > | dpsite |
| DPsite associated type. | |
| typedef G | grid |
| Grid associated type. | |
| typedef mln::algebra::h_vec < G::dim, float > | h_vec |
| Algebra hexagonal vector (hvec) associated type. | |
| typedef mln::algebra::vec < G::dim, float > | vec |
| Algebra vector (vec) associated type. | |
Public Member Functions | |
| const C & | last_coord () const |
| Read-only access to the last coordinate. | |
| C & | last_coord () |
| Read-write access to the last coordinate. | |
| point< G, C > & | operator+= (const delta &dp) |
Shifting by dp. | |
| point< G, C > & | operator-= (const delta &dp) |
Shifting by the inverse of dp. | |
| C & | operator[] (unsigned i) |
Read-write access to the i-th coordinate value. | |
| const C & | operator[] (unsigned i) const |
Read-only access to the i-th coordinate value. | |
| template<typename F > | |
| point (const Function_v2v< F > &f) | |
Constructor; coordinates are set by function f. | |
| point () | |
| Constructor without argument. | |
| template<typename C2 > | |
| point (const mln::algebra::vec< dim, C2 > &v) | |
| Constructor from an algebra vector. | |
| void | set_all (C c) |
Set all coordinates to the value c. | |
| h_vec | to_h_vec () const |
| Transform to point in homogene coordinate system. | |
| vec | to_vec () const |
| Explicit conversion towards mln::algebra::vec. | |
| point (C ind) | |
| point (const literal::origin_t &) | |
| Constructors/assignments with literals. | |
Static Public Member Functions | |
| static const point< G, C > & | minus_infty () |
| Point with all coordinates set to the mininum value. | |
| static const point< G, C > & | plus_infty () |
| Point with all coordinates set to the maximum value. | |
Static Public Attributes | |
| static const point< G, C > | origin = all_to(0) |
| Origin point (all coordinates are 0). | |
Generic point class.
Parameters are n the dimension of the space and C the coordinate type in this space.
Definition at line 108 of file point.hh.
| typedef C mln::point< G, C >::coord |
| typedef dpoint<G,C> mln::point< G, C >::delta |
| typedef dpoint<G,C> mln::point< G, C >::dpsite |
| typedef G mln::point< G, C >::grid |
| typedef mln::algebra::h_vec<G::dim, float> mln::point< G, C >::h_vec |
| typedef mln::algebra::vec<G::dim, float> mln::point< G, C >::vec |
| anonymous enum |
| mln::point< G, C >::point | ( | ) | [inline] |
| mln::point< G, C >::point | ( | const mln::algebra::vec< dim, C2 > & | v | ) | [inline] |
| mln::point< G, C >::point | ( | C | ind | ) | [inline, explicit] |
| mln::point< G, C >::point | ( | const literal::origin_t & | ) | [inline] |
| mln::point< G, C >::point | ( | const Function_v2v< F > & | f | ) | [inline] |
| const C & mln::point< G, C >::last_coord | ( | ) | const [inline] |
Read-only access to the last coordinate.
Definition at line 402 of file point.hh.
Referenced by mln::p_run< P >::end(), mln::p_run< P >::operator[](), and mln::debug::put_word().
| C & mln::point< G, C >::last_coord | ( | ) | [inline] |
| const point< G, C > & mln::point< G, C >::minus_infty | ( | ) | [inline, static] |
| point< G, C > & mln::point< G, C >::operator+= | ( | const delta & | dp | ) | [inline] |
| point< G, C > & mln::point< G, C >::operator-= | ( | const delta & | dp | ) | [inline] |
| C & mln::point< G, C >::operator[] | ( | unsigned | i | ) | [inline] |
| const C & mln::point< G, C >::operator[] | ( | unsigned | i | ) | const [inline] |
| const point< G, C > & mln::point< G, C >::plus_infty | ( | ) | [inline, static] |
| void mln::point< G, C >::set_all | ( | C | c | ) | [inline] |
| point< G, C >::h_vec mln::point< G, C >::to_h_vec | ( | ) | const [inline] |
| point< G, C >::vec mln::point< G, C >::to_vec | ( | ) | const [inline] |
const point< G, C > mln::point< G, C >::origin = all_to(0) [static] |
1.7.1