KrisLibrary  1.0.0
Public Types | Public Member Functions | Public Attributes | List of all members
Math::MatrixIterator< T > Class Template Reference

An iterator through MatrixTemplate elements. More...

#include <MatrixTemplate.h>

Public Types

typedef MatrixIterator< T > MyT
 

Public Member Functions

 MatrixIterator (const MyT &i)
 
 MatrixIterator (T *_ptr, int _istride, int _jstride)
 
T & operator* ()
 
T * operator-> ()
 
MyTnextRow ()
 
MyTprevRow ()
 
MyTnextCol ()
 
MyTprevCol ()
 
bool operator!= (const MyT &i)
 
bool operator== (const MyT &i)
 
bool operator< (const MyT &i)
 
bool operator> (const MyT &i)
 

Public Attributes

T * ptr
 
T * rowPtr
 
int istride
 
int jstride
 

Detailed Description

template<class T>
class Math::MatrixIterator< T >

An iterator through MatrixTemplate elements.

Operates similarly to VectorIterator, but instead of ++ and –, rows and columns are iterated explicitly with the nextRow(),nextCol(), prevRow(), and prevCol() methods.


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