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