#include <matrix.h>
Inheritance diagram for Wt::Matrix< T >::const_iterator:
Public Member Functions | |
const_iterator (const Matrix *matrix_p=0, int row=0, int column=0) | |
const_iterator (const iterator &other) | |
bool | operator== (const iterator &other) const |
bool | operator!= (const iterator &other) const |
iterator & | operator++ () |
T & | operator * () const |
T * | operator-> () const |
int | row () const |
int | column () const |
Definition at line 100 of file matrix.h.
Wt::Matrix< T >::const_iterator::const_iterator | ( | const Matrix * | matrix_p = 0 , |
|
int | row = 0 , |
|||
int | column = 0 | |||
) | [inline] |
Wt::Matrix< T >::const_iterator::const_iterator | ( | const iterator & | other | ) | [inline] |
int Wt::Matrix< T >::iterator::column | ( | ) | const [inline, inherited] |
Definition at line 90 of file matrix.h.
References Wt::Matrix< T >::iterator::column_.
00090 { 00091 return column_; 00092 }
T& Wt::Matrix< T >::iterator::operator * | ( | ) | const [inline, inherited] |
Definition at line 75 of file matrix.h.
References Wt::Matrix< T >::iterator::column_, Wt::Matrix< T >::iterator::m_, and Wt::Matrix< T >::iterator::row_.
bool Wt::Matrix< T >::iterator::operator!= | ( | const iterator & | other | ) | const [inline, inherited] |
iterator& Wt::Matrix< T >::iterator::operator++ | ( | ) | [inline, inherited] |
Definition at line 56 of file matrix.h.
References Wt::Matrix< T >::iterator::column_, Wt::Matrix< T >::iterator::m_, Wt::Matrix< T >::numCols(), Wt::Matrix< T >::numRows(), and Wt::Matrix< T >::iterator::row_.
00056 { 00057 const Matrix& matrix = *m_; 00058 if (column_ < matrix.numCols() - 1) { 00059 ++column_; 00060 } else { 00061 // end of column 00062 if (row_ < matrix.numRows() - 1) { 00063 // advance row 00064 ++row_; 00065 column_ = 0; 00066 } else { 00067 // end() 00068 row_ = -1; 00069 column_ = -1; 00070 } 00071 } 00072 return *this; 00073 }
Here is the call graph for this function:
T* Wt::Matrix< T >::iterator::operator-> | ( | ) | const [inline, inherited] |
Definition at line 80 of file matrix.h.
References Wt::Matrix< T >::iterator::column_, Wt::Matrix< T >::iterator::m_, and Wt::Matrix< T >::iterator::row_.
bool Wt::Matrix< T >::iterator::operator== | ( | const iterator & | other | ) | const [inline, inherited] |
Definition at line 50 of file matrix.h.
References Wt::Matrix< T >::iterator::column_, and Wt::Matrix< T >::iterator::row_.
int Wt::Matrix< T >::iterator::row | ( | ) | const [inline, inherited] |
Definition at line 86 of file matrix.h.
References Wt::Matrix< T >::iterator::row_.
00086 { 00087 return row_; 00088 }
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.