Generic delta-point class. More...
#include <dpoint.hh>

Public Types | |
| enum | { dim = G::dim } |
| typedef C | coord |
| Coordinate associated type. | |
| 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 | |
| dpoint () | |
| Constructor without argument. | |
| template<typename C2 > | |
| dpoint (const algebra::vec< dim, C2 > &v) | |
| Constructor from an algebra vector. | |
| template<typename F > | |
| dpoint (const Function_v2v< F > &f) | |
Constructor; coordinates are set by function f. | |
| template<typename Q > | |
| operator mln::algebra::vec< dpoint< G, C >::dim, Q > () const | |
| Conversion towards a algebra::vec. | |
| C | operator[] (unsigned i) const |
Read-only access to the i-th coordinate value. | |
| C & | operator[] (unsigned i) |
Read-write 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 (C ind) | |
| dpoint (const literal::zero_t &) | |
| Constructors/assignments with literals. | |
Generic delta-point class.
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 C mln::dpoint< G, C >::coord |
| 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 >::dim.
| mln::dpoint< G, C >::dpoint | ( | C | ind | ) | [inline] |
| mln::dpoint< G, C >::dpoint | ( | const literal::zero_t & | ) | [inline] |
| mln::dpoint< G, C >::dpoint | ( | const Function_v2v< F > & | f | ) | [inline] |
| 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().
| 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 >::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 >::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.
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 >::dim.
Referenced by mln::dpoint< G, C >::operator mln::algebra::vec< dpoint< G, C >::dim, Q >().
1.7.1