Helper class for Matrix op[]. More...
#include <Matrix.h>
Public Types | |
typedef DATA_TYPE | DataType |
Public Member Functions | |
RowAccessor (Matrix< DATA_TYPE, ROWS, COLS > *mat, const unsigned row) | |
DATA_TYPE & | operator[] (const unsigned column) |
Public Attributes | |
Matrix< DATA_TYPE, ROWS, COLS > * | mMat |
unsigned | mRow |
Helper class for Matrix op[].
This class encapsulates the row that the user is accessing and implements a new op[] that passes the column to use
Definition at line 131 of file Matrix.h.
typedef DATA_TYPE gmtl::Matrix< DATA_TYPE, ROWS, COLS >::RowAccessor::DataType |
gmtl::Matrix< DATA_TYPE, ROWS, COLS >::RowAccessor::RowAccessor | ( | Matrix< DATA_TYPE, ROWS, COLS > * | mat, | |
const unsigned | row | |||
) | [inline] |
Definition at line 136 of file Matrix.h.
: mMat(mat), mRow(row) { gmtlASSERT(row < ROWS); gmtlASSERT(NULL != mat); }
DATA_TYPE& gmtl::Matrix< DATA_TYPE, ROWS, COLS >::RowAccessor::operator[] | ( | const unsigned | column | ) | [inline] |
Definition at line 143 of file Matrix.h.
{ gmtlASSERT(column < COLS); return (*mMat)(mRow,column); }
Matrix<DATA_TYPE,ROWS,COLS>* gmtl::Matrix< DATA_TYPE, ROWS, COLS >::RowAccessor::mMat |
unsigned gmtl::Matrix< DATA_TYPE, ROWS, COLS >::RowAccessor::mRow |