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

fast multidimensional iterator More...

#include <array-iterator.h>

Inheritance diagram for ArrayIterator< D, T, PT, SM, ORDERED >:
Inheritance graph
[legend]
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 > & ()
Toperator= (const T &v)
Toperator+= (const T &v)
Toperator-= (const T &v)
Toperator/= (const T &v)
Toperator*= (const T &v)
bool operator== (const T &v)
bool operator!= (const T &v)

Public Attributes

Position< D > position
Array< D, Tmatrix

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


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]

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]
template<int D, class T, bool PT, int SM, bool ORDERED>
ArrayIterator< D, T, PT, SM, ORDERED >::operator Position< D > (  )  const [inline]
template<int D, class T, bool PT, int SM, bool ORDERED>
bool ArrayIterator< D, T, PT, SM, ORDERED >::operator!= ( const T v  )  [inline]

References T.

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

References T.

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

References T.

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

References T.

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

References T.

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 >.

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

References T.

template<int D, class T, bool PT, int SM, bool ORDERED>
int ArrayIterator< D, T, PT, SM, ORDERED >::operator[] ( int  i  )  const [inline]
template<int D, class T, bool PT, int SM, bool ORDERED>
void ArrayIterator< D, T, PT, SM, ORDERED >::reset (  )  [inline]
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]

References assert().


Member Data Documentation

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

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2