73 for (
int i=0;i<dim;i++)
83 template <
int dim>
class CoordsIterator :
public std::iterator<std::input_iterator_tag, Coords<dim> > {
152 for (
int i=0;i<dim;i++) {
153 if (_pos[i]!=_b[i]) {
CoordsIterator(const Coords< dim > &a, const Coords< dim > &b)
Constructor.
Definition: Coords.h:107
Coordinates.
Definition: Coords.h:16
size_t prod() const
Product of coordinates.
Definition: Coords.h:71
Vector of fixed size.
Definition: FVector.h:17
Coords(int v)
Constructor with constant value.
Definition: Coords.h:47
const int & z() const
Read alias.
Definition: FVector.h:132
int operator*(const FVector &v) const
Scalar product.
Definition: FVector.h:259
Coords(int x, int y)
2D alias.
Definition: Coords.h:55
Coords< dim > _b
end
Definition: Coords.h:88
CoordsIterator()
Empty constructor.
Definition: Coords.h:100
Iterator on Coordinates.
Definition: Coords.h:83
const int & x() const
Read alias.
Definition: FVector.h:104
bool operator!=(const FArray &b) const
Inequality test.
Definition: FArray.h:241
Coords()
Empty constructor.
Definition: Coords.h:25
Coords< dim > _pos
Current position.
Definition: Coords.h:90
Coords< dim > _a
begin
Definition: Coords.h:86
FVector & operator=(const FArray< T2, dim > &b)
Assignment.
Definition: FVector.h:97
Coords(int x, int y, int z)
3D alias.
Definition: Coords.h:64
Coords(const Base &v)
Copy constructor Constructs from anit Coords.
Definition: Coords.h:32
Coords(const int v[dim])
Constructor from C array.
Definition: Coords.h:40
bool _stop
end reached?
Definition: Coords.h:92
bool operator==(const FArray &b) const
Equality test.
Definition: FArray.h:231
const int & y() const
Read alias.
Definition: FVector.h:118
Imagine++ namespace.
Definition: Array.h:7