Public Types | Public Member Functions | Public Attributes

gmtl::Matrix< DATA_TYPE, ROWS, COLS >::RowAccessor Class Reference

Helper class for Matrix op[]. More...

#include <Matrix.h>

List of all members.

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

Detailed Description

template<typename DATA_TYPE, unsigned ROWS, unsigned COLS>
class gmtl::Matrix< DATA_TYPE, ROWS, COLS >::RowAccessor

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.


Member Typedef Documentation

template<typename DATA_TYPE, unsigned ROWS, unsigned COLS>
typedef DATA_TYPE gmtl::Matrix< DATA_TYPE, ROWS, COLS >::RowAccessor::DataType

Definition at line 134 of file Matrix.h.


Constructor & Destructor Documentation

template<typename DATA_TYPE, unsigned ROWS, unsigned COLS>
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);
      }


Member Function Documentation

template<typename DATA_TYPE, unsigned ROWS, unsigned COLS>
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);
      }


Member Data Documentation

template<typename DATA_TYPE, unsigned ROWS, unsigned COLS>
Matrix<DATA_TYPE,ROWS,COLS>* gmtl::Matrix< DATA_TYPE, ROWS, COLS >::RowAccessor::mMat

Definition at line 149 of file Matrix.h.

template<typename DATA_TYPE, unsigned ROWS, unsigned COLS>
unsigned gmtl::Matrix< DATA_TYPE, ROWS, COLS >::RowAccessor::mRow

Definition at line 150 of file Matrix.h.


The documentation for this class was generated from the following file: