Public Member Functions | |
Accessor (const SparseMatrixEZ< number > *matrix, const unsigned int row, const unsigned short index) | |
unsigned int | row () const |
unsigned short | index () const |
unsigned int | column () const |
number | value () const |
Protected Attributes | |
const SparseMatrixEZ< number > * | matrix |
unsigned int | a_row |
unsigned short | a_index |
Friends | |
class | const_iterator |
Accessor class for iterators
SparseMatrixEZ< number >::const_iterator::Accessor::Accessor | ( | const SparseMatrixEZ< number > * | matrix, | |
const unsigned int | row, | |||
const unsigned short | index | |||
) | [inline] |
Constructor. Since we use accessors only for read access, a const matrix pointer is sufficient.
unsigned int SparseMatrixEZ< number >::const_iterator::Accessor::row | ( | ) | const [inline] |
Row number of the element represented by this object.
References SparseMatrixEZ< number >::const_iterator::Accessor::a_row.
Referenced by SparseMatrixEZ< number >::const_iterator::operator<(), and SparseMatrixEZ< number >::const_iterator::operator==().
unsigned short SparseMatrixEZ< number >::const_iterator::Accessor::index | ( | ) | const [inline] |
Index in row of the element represented by this object.
References SparseMatrixEZ< number >::const_iterator::Accessor::a_index.
Referenced by SparseMatrixEZ< number >::const_iterator::operator<(), and SparseMatrixEZ< number >::const_iterator::operator==().
unsigned int SparseMatrixEZ< number >::const_iterator::Accessor::column | ( | ) | const [inline] |
Column number of the element represented by this object.
References SparseMatrixEZ< number >::const_iterator::Accessor::a_index, SparseMatrixEZ< number >::const_iterator::Accessor::a_row, and SparseMatrixEZ< number >::const_iterator::Accessor::matrix.
number SparseMatrixEZ< number >::const_iterator::Accessor::value | ( | ) | const [inline] |
Value of this matrix entry.
References SparseMatrixEZ< number >::const_iterator::Accessor::a_index, SparseMatrixEZ< number >::const_iterator::Accessor::a_row, and SparseMatrixEZ< number >::const_iterator::Accessor::matrix.
friend class const_iterator [friend] |
Make enclosing class a friend.
const SparseMatrixEZ<number>* SparseMatrixEZ< number >::const_iterator::Accessor::matrix [protected] |
unsigned int SparseMatrixEZ< number >::const_iterator::Accessor::a_row [protected] |
Current row number.
Referenced by SparseMatrixEZ< number >::const_iterator::Accessor::column(), SparseMatrixEZ< number >::const_iterator::const_iterator(), SparseMatrixEZ< number >::const_iterator::operator++(), SparseMatrixEZ< number >::const_iterator::Accessor::row(), and SparseMatrixEZ< number >::const_iterator::Accessor::value().
unsigned short SparseMatrixEZ< number >::const_iterator::Accessor::a_index [protected] |
Current index in row.
Referenced by SparseMatrixEZ< number >::const_iterator::Accessor::column(), SparseMatrixEZ< number >::const_iterator::const_iterator(), SparseMatrixEZ< number >::const_iterator::Accessor::index(), SparseMatrixEZ< number >::const_iterator::operator++(), and SparseMatrixEZ< number >::const_iterator::Accessor::value().