$extrastylesheet
#include <mln/core/dpoint.hh>
Public Member Functions | |
dpoint () | |
template<typename C2 > | |
dpoint (const algebra::vec< dim, C2 > &v) | |
template<typename F > | |
dpoint (const Function_v2v< F > &f) | |
template<typename Q > | |
operator mln::algebra::vec< dpoint< G, C >::dim, Q > () const | |
C | operator[] (unsigned i) const |
C & | operator[] (unsigned i) |
void | set_all (C c) |
vec | to_vec () const |
dpoint (C ind) | |
dpoint (C row, C col) | |
dpoint (C sli, C row, C col) | |
dpoint (const literal::zero_t &) | |
dpoint< G, C > & | operator= (const literal::zero_t &) |
dpoint (const literal::one_t &) | |
dpoint< G, C > & | operator= (const literal::one_t &) |
Protected Attributes | |
mln::algebra::vec< G::dim, C > | coord_ |
Public Types | |
enum | { dim = G::dim } |
typedef Gdpoint< void > | category |
typedef C | coord |
typedef dpoint< G, C > | exact_t |
typedef G | grid |
typedef point< G, C > | psite |
typedef point< G, C > | site |
typedef algebra::vec< G::dim, C > | vec |
Generic delta-point class.
Parameters are G
the dimension of the space and C
the coordinate type in this space.
mln::dpoint< G, C >::dpoint | ( | ) |
Constructor without argument.
mln::dpoint< G, C >::dpoint | ( | const algebra::vec< dim, C2 > & | v | ) |
Constructor from an algebra vector.
mln::dpoint< G, C >::dpoint | ( | C | ind | ) |
Constructors with different numbers of arguments (coordinates) w.r.t. the dimension.
mln::dpoint< G, C >::dpoint | ( | C | row, |
C | col | ||
) |
mln::dpoint< G, C >::dpoint | ( | C | sli, |
C | row, | ||
C | col | ||
) |
mln::dpoint< G, C >::dpoint | ( | const literal::zero_t & | ) |
Constructors/assignments with literals.
mln::dpoint< G, C >::dpoint | ( | const literal::one_t & | ) |
mln::dpoint< G, C >::dpoint | ( | const Function_v2v< F > & | f | ) |
Constructor; coordinates are set by function f
.
mln::dpoint< G, C >::operator mln::algebra::vec< dpoint< G, C >::dim, Q > | ( | ) | const |
Conversion towards a algebra::vec.
dpoint<G,C>& mln::dpoint< G, C >::operator= | ( | const literal::zero_t & | ) |
dpoint<G,C>& mln::dpoint< G, C >::operator= | ( | const literal::one_t & | ) |
C mln::dpoint< G, C >::operator[] | ( | unsigned | i | ) | const |
Read-only access to the i-th
coordinate value.
[in] | i | The coordinate index. |
i
< dim
C& mln::dpoint< G, C >::operator[] | ( | unsigned | i | ) |
Read-write access to the i-th
coordinate value.
[in] | i | The coordinate index. |
i
< dim
void mln::dpoint< G, C >::set_all | ( | C | c | ) |
Set all coordinates to the value c
.
vec mln::dpoint< G, C >::to_vec | ( | ) | const |
Explicit conversion.
|
protected |
|
inherited |
Definition at line 103 of file gdpoint.hh.
typedef C mln::dpoint< G, C >::coord |
|
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 |