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.
|
template<typename G, typename C>
struct mln::dpoint< G, C >
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.