5 #ifndef __ARRAY_ITERATOR_HPP_
6 #define __ARRAY_ITERATOR_HPP_
10 #include "headcpp.hpp"
11 #include "dim_array.hpp"
87 template <
class>
friend class Array ;
Version of the Index class optimized for incremental access to Array components.
bool check_value()
Sylvain's stuff.
Dim_array const & get_sizes() const
Returns all the dimensions.
Array_iterator(const Dim_array &dim)
Standard constructor.
int get_ndim() const
Returns the number of dimensions.
void set_start()
Sets the iterator at the start.
bool inc(int increm, int var=0)
Increments the position of the Array_iterator.
int get_position() const
Accessor for the value member.
Array_iterator & set(Array_iterator const &_so)
Set the position of the iterator at the same as the one of the source.
Memory_mapped_array< int > steps
The incremental index step with respect to each dimensions.
int position
Corresponding value for 1D indexing .
bool inc()
Optimized unit increment.
Array_iterator(int ndim, int tndim)
Constructor.
Dim_array sizes
Sizes of the associated Array.
bool operator==(Array_iterator const &xx) const
Comparison operator.
bool inc1(int var)
Optimized unit increment with respect to the passed index number.
Array_iterator & set_value(int _position)
Set position.
Template class for arrays.
Class for storing the dimensions of an array.
int get_ndim() const
Returns the number of dimensions.
int & set(int i)
Read/write of the size of a given dimension.