#include <dpoint.hh>

Public Types | |
| enum | { dim = G::dim } |
| typedef Gdpoint< void > | category |
| typedef C | coord |
| Coordinate associated type. | |
| typedef E | exact_t |
| typedef G | grid |
| Grid associated type. | |
| typedef point< G, C > | psite |
| Psite associated type. | |
| typedef point< G, C > | site |
| Site associated type. | |
| typedef algebra::vec< G::dim, C > | vec |
| Algebra vector (vec) associated type. | |
Public Member Functions | |
| template<typename F> | |
| dpoint (const Function_v2v< F > &f) | |
Constructor; coordinates are set by function f. | |
| template<typename C2> | |
| dpoint (const algebra::vec< dim, C2 > &v) | |
| Constructor from an algebra vector. | |
| dpoint () | |
| Constructor without argument. | |
| template<typename Q> | |
| operator mln::algebra::vec< dpoint< G, C >::dim, Q > () const | |
| Conversion towards a algebra::vec. | |
| C & | operator[] (unsigned i) |
Read-write access to the i-th coordinate value. | |
| C | operator[] (unsigned i) const |
Read-only access to the i-th coordinate value. | |
| void | set_all (C c) |
Set all coordinates to the value c. | |
| vec | to_vec () const |
| Explicit conversion. | |
| dpoint (const literal::one_t &) | |
| dpoint (const literal::zero_t &) | |
| Constructors/assignments with literals. | |
| dpoint< G, C > & | operator= (const literal::one_t &) |
| dpoint< G, C > & | operator= (const literal::zero_t &) |
| dpoint (C sli, C row, C col) | |
| dpoint (C row, C col) | |
| dpoint (C ind) | |
Protected Attributes | |
| mln::algebra::vec< G::dim, C > | coord_ |
Parameters are G the dimension of the space and C the coordinate type in this space.
Definition at line 58 of file dpoint.hh.
typedef Gdpoint<void> mln::Gdpoint< E >::category [inherited] |
| typedef C mln::dpoint< G, C >::coord |
typedef E mln::Object< E >::exact_t [inherited] |
| typedef G mln::dpoint< G, C >::grid |
| typedef point<G,C> mln::dpoint< G, C >::psite |
| typedef point<G,C> mln::dpoint< G, C >::site |
| typedef algebra::vec<G::dim, C> mln::dpoint< G, C >::vec |
| anonymous enum |
| mln::dpoint< G, C >::dpoint | ( | ) | [inline] |
| mln::dpoint< G, C >::dpoint | ( | const algebra::vec< dim, C2 > & | v | ) | [inline] |
Constructor from an algebra vector.
Definition at line 159 of file dpoint.hh.
References mln::dpoint< G, C >::coord_, and mln::dpoint< G, C >::dim.
| mln::dpoint< G, C >::dpoint | ( | C | ind | ) | [inline] |
Constructors with different numbers of arguments (coordinates) w.r.t. the dimension.
Definition at line 176 of file dpoint.hh.
References mln::dpoint< G, C >::coord_.
| mln::dpoint< G, C >::dpoint | ( | C | row, | |
| C | col | |||
| ) | [inline] |
| mln::dpoint< G, C >::dpoint | ( | C | sli, | |
| C | row, | |||
| C | col | |||
| ) | [inline] |
| mln::dpoint< G, C >::dpoint | ( | const literal::zero_t & | ) | [inline] |
Constructors/assignments with literals.
Definition at line 203 of file dpoint.hh.
References mln::dpoint< G, C >::coord_, and mln::algebra::vec< n, T >::set_all().
| mln::dpoint< G, C >::dpoint | ( | const literal::one_t & | ) | [inline] |
| mln::dpoint< G, C >::dpoint | ( | const Function_v2v< F > & | f | ) | [inline] |
Constructor; coordinates are set by function f.
Definition at line 238 of file dpoint.hh.
References mln::dpoint< G, C >::coord_, mln::dpoint< G, C >::dim, and mln::exact().
| mln::dpoint< G, C >::operator mln::algebra::vec< dpoint< G, C >::dim, Q > | ( | ) | const [inline] |
Conversion towards a algebra::vec.
Definition at line 257 of file dpoint.hh.
References mln::dpoint< G, C >::to_vec().
| dpoint< G, C > & mln::dpoint< G, C >::operator= | ( | const literal::one_t & | ) | [inline] |
| dpoint< G, C > & mln::dpoint< G, C >::operator= | ( | const literal::zero_t & | ) | [inline] |
Definition at line 211 of file dpoint.hh.
References mln::dpoint< G, C >::coord_, and mln::algebra::vec< n, T >::set_all().
| C & mln::dpoint< G, C >::operator[] | ( | unsigned | i | ) | [inline] |
Read-write access to the i-th coordinate value.
| [in] | i | The coordinate index. |
i < dim Definition at line 144 of file dpoint.hh.
References mln::dpoint< G, C >::coord_, and mln::dpoint< G, C >::dim.
| C mln::dpoint< G, C >::operator[] | ( | unsigned | i | ) | const [inline] |
Read-only access to the i-th coordinate value.
| [in] | i | The coordinate index. |
i < dim Definition at line 136 of file dpoint.hh.
References mln::dpoint< G, C >::coord_, and mln::dpoint< G, C >::dim.
| void mln::dpoint< G, C >::set_all | ( | C | c | ) | [inline] |
Set all coordinates to the value c.
Definition at line 248 of file dpoint.hh.
References mln::dpoint< G, C >::coord_, and mln::dpoint< G, C >::dim.
Referenced by mln::win::line< M, i, C >::line().
| dpoint< G, C >::vec mln::dpoint< G, C >::to_vec | ( | ) | const [inline] |
Explicit conversion.
Definition at line 265 of file dpoint.hh.
References mln::dpoint< G, C >::coord_, and mln::dpoint< G, C >::dim.
Referenced by mln::dpoint< G, C >::operator mln::algebra::vec< dpoint< G, C >::dim, Q >().
mln::algebra::vec<G::dim, C> mln::dpoint< G, C >::coord_ [protected] |
Definition at line 128 of file dpoint.hh.
Referenced by mln::dpoint< G, C >::dpoint(), mln::dpoint< G, C >::operator=(), mln::dpoint< G, C >::operator[](), mln::dpoint< G, C >::set_all(), and mln::dpoint< G, C >::to_vec().
1.5.6