ArrayIterator< D, T, PT, SM, ORDERED > Class Template Reference
[Data]

fast multidimensional iterator More...

#include <array-iterator.h>

Inherits ArrayIteratorBacking< T, PT >.

Collaboration diagram for ArrayIterator< D, T, PT, SM, ORDERED >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ArrayIterator ()
 ArrayIterator (const Array< D, T > &m)
 ArrayIterator (Array< D, T > *m)
void reset (const Array< D, T > &m)
void reset ()
 ArrayIterator (const Array< D, T > &m, const Select< D-SM > sel)
 ArrayIterator (const Array< D, T > &m, int d)
 ArrayIterator (const Array< D, T > &m, int x, int y)
int operator[] (int i) const
 operator Position< D > () const
 operator Array< SM, T > & ()
T & operator= (const T &v)
T & operator+= (const T &v)
T & operator-= (const T &v)
T & operator/= (const T &v)
T & operator*= (const T &v)
bool operator== (const T &v)
bool operator!= (const T &v)

Public Attributes

Position< D > position
Array< D, T > matrix


Detailed Description

template<int D, class T, bool PT, int SM, bool ORDERED>
class ArrayIterator< D, T, PT, SM, ORDERED >

fast multidimensional iterator

The ArrayIterator keeps track of the position within a matrix of dimension D The submatrix it returns is of dimension SM position tracking can be enabled with PT, and ordered mode can be selected with ORDERED. The type must be the same for all

Definition at line 131 of file array-iterator.h.


Constructor & Destructor Documentation

template<int D, class T, bool PT, int SM, bool ORDERED>
ArrayIterator< D, T, PT, SM, ORDERED >::ArrayIterator (  )  [inline]

The empty iterator creates its own empty matrix

template<int D, class T, bool PT, int SM, bool ORDERED>
ArrayIterator< D, T, PT, SM, ORDERED >::ArrayIterator ( const Array< D, T > &  m  )  [inline]

When submitting an array, we will walk through every position, so the submatrix has actual dimension 0

template<int D, class T, bool PT, int SM, bool ORDERED>
ArrayIterator< D, T, PT, SM, ORDERED >::ArrayIterator ( Array< D, T > *  m  )  [inline]

template<int D, class T, bool PT, int SM, bool ORDERED>
ArrayIterator< D, T, PT, SM, ORDERED >::ArrayIterator ( const Array< D, T > &  m,
const Select< D-SM >  sel 
) [inline]

template<int D, class T, bool PT, int SM, bool ORDERED>
ArrayIterator< D, T, PT, SM, ORDERED >::ArrayIterator ( const Array< D, T > &  m,
int  d 
) [inline]

template<int D, class T, bool PT, int SM, bool ORDERED>
ArrayIterator< D, T, PT, SM, ORDERED >::ArrayIterator ( const Array< D, T > &  m,
int  x,
int  y 
) [inline]

Definition at line 174 of file array-iterator.h.


Member Function Documentation

template<int D, class T, bool PT, int SM, bool ORDERED>
ArrayIterator< D, T, PT, SM, ORDERED >::operator Array< SM, T > & (  )  [inline]

Definition at line 189 of file array-iterator.h.

template<int D, class T, bool PT, int SM, bool ORDERED>
ArrayIterator< D, T, PT, SM, ORDERED >::operator Position< D > (  )  const [inline]

Definition at line 184 of file array-iterator.h.

template<int D, class T, bool PT, int SM, bool ORDERED>
bool ArrayIterator< D, T, PT, SM, ORDERED >::operator!= ( const T &  v  )  [inline]

Definition at line 218 of file array-iterator.h.

template<int D, class T, bool PT, int SM, bool ORDERED>
T& ArrayIterator< D, T, PT, SM, ORDERED >::operator*= ( const T &  v  )  [inline]

Definition at line 210 of file array-iterator.h.

template<int D, class T, bool PT, int SM, bool ORDERED>
T& ArrayIterator< D, T, PT, SM, ORDERED >::operator+= ( const T &  v  )  [inline]

Definition at line 198 of file array-iterator.h.

template<int D, class T, bool PT, int SM, bool ORDERED>
T& ArrayIterator< D, T, PT, SM, ORDERED >::operator-= ( const T &  v  )  [inline]

Definition at line 202 of file array-iterator.h.

template<int D, class T, bool PT, int SM, bool ORDERED>
T& ArrayIterator< D, T, PT, SM, ORDERED >::operator/= ( const T &  v  )  [inline]

Definition at line 206 of file array-iterator.h.

template<int D, class T, bool PT, int SM, bool ORDERED>
T& ArrayIterator< D, T, PT, SM, ORDERED >::operator= ( const T &  v  )  [inline]

Reimplemented from ArrayIteratorBacking< T, PT >.

Definition at line 194 of file array-iterator.h.

template<int D, class T, bool PT, int SM, bool ORDERED>
bool ArrayIterator< D, T, PT, SM, ORDERED >::operator== ( const T &  v  )  [inline]

Definition at line 214 of file array-iterator.h.

template<int D, class T, bool PT, int SM, bool ORDERED>
int ArrayIterator< D, T, PT, SM, ORDERED >::operator[] ( int  i  )  const [inline]

Reimplemented from ArrayIteratorBacking< T, PT >.

Definition at line 179 of file array-iterator.h.

template<int D, class T, bool PT, int SM, bool ORDERED>
void ArrayIterator< D, T, PT, SM, ORDERED >::reset (  )  [inline]

Definition at line 163 of file array-iterator.h.

template<int D, class T, bool PT, int SM, bool ORDERED>
void ArrayIterator< D, T, PT, SM, ORDERED >::reset ( const Array< D, T > &  m  )  [inline]

Definition at line 158 of file array-iterator.h.


Member Data Documentation

template<int D, class T, bool PT, int SM, bool ORDERED>
Array<D,T> ArrayIterator< D, T, PT, SM, ORDERED >::matrix

Definition at line 138 of file array-iterator.h.

template<int D, class T, bool PT, int SM, bool ORDERED>
Position<D> ArrayIterator< D, T, PT, SM, ORDERED >::position

Definition at line 137 of file array-iterator.h.


The documentation for this class was generated from the following file:

Generated on Sat Feb 20 19:04:26 2010 for Data Objects by  doxygen 1.5.9