#include <Matrix.h>
Collaboration diagram for gmtl::Matrix::RowAccessor:

Public Methods | |
| 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 |
This class encapsulates the row that the user is accessing and implements a new op[] that passes the column to use
Definition at line 89 of file Matrix.h.
|
||||||||||||||||
|
Definition at line 92 of file Matrix.h. References gmtlASSERT, mMat, and mRow.
00093 : mMat(mat), mRow(row) 00094 { 00095 gmtlASSERT(row < ROWS); 00096 gmtlASSERT(NULL != mat); 00097 } |
|
||||||||||
|
Definition at line 99 of file Matrix.h. References gmtlASSERT, and mRow.
00100 {
00101 gmtlASSERT(column < COLS);
00102 return (*mMat)(mRow,column);
00103 }
|
|
|||||
|
Definition at line 105 of file Matrix.h. Referenced by RowAccessor. |
|
|||||
|
Definition at line 106 of file Matrix.h. Referenced by operator[], and RowAccessor. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002