Public Types | Public Member Functions | Public Attributes

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

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

#include <Matrix.h>

List of all members.

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

Detailed Description

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

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.


Member Typedef Documentation

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

Definition at line 160 of file Matrix.h.


Constructor & Destructor Documentation

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


Member Function Documentation

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


Member Data Documentation

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

Definition at line 176 of file Matrix.h.

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

Definition at line 177 of file Matrix.h.


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