#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 | |
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::zero_t &) | |
Constructors/assignments with literals. | |
dpoint (C ind) |
Parameters are G
the dimension of the space and C
the coordinate type in this space.
typedef C mln::dpoint< G, C >::coord |
Coordinate associated type.
typedef G mln::dpoint< G, C >::grid |
Grid associated type.
typedef point<G,C> mln::dpoint< G, C >::psite |
Psite associated type.
typedef point<G,C> mln::dpoint< G, C >::site |
Site associated type.
typedef algebra::vec<G::dim, C> mln::dpoint< G, C >::vec |
Algebra vector (vec) associated type.
anonymous enum |
mln::dpoint< G, C >::dpoint | ( | ) | [inline] |
Constructor without argument.
mln::dpoint< G, C >::dpoint | ( | const algebra::vec< dim, C2 > & | v | ) | [inline] |
mln::dpoint< G, C >::dpoint | ( | C | ind | ) | [inline] |
Constructors with different numbers of arguments (coordinates) w.r.t. the dimension.
mln::dpoint< G, C >::dpoint | ( | const literal::zero_t & | ) | [inline] |
Constructors/assignments with literals.
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] |
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
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
References mln::dpoint< G, C >::dim.
void mln::dpoint< G, C >::set_all | ( | C | c | ) | [inline] |
Set all coordinates to the value c
.
References 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.
References mln::dpoint< G, C >::dim.
Referenced by mln::dpoint< G, C >::operator mln::algebra::vec< dpoint< G, C >::dim, Q >().