Matrix::SecondIndex Class Reference

Help class for operator [] implementation. More...

List of all members.

Public Member Functions

 SecondIndex (Matrix *matrix)
 Constructor.
Objectoperator[] (SizeType secondIndex)
 Returns pointer to the selected object on the matrix.

Private Member Functions

 SecondIndex (const SecondIndex &)
SecondIndexoperator= (const SecondIndex &)
 ~SecondIndex ()

Private Attributes

Matrixm
 Original matrix.
SizeType x
 Current first index.

Friends

class Matrix


Detailed Description

Help class for operator [] implementation.

Without this class there is no way how to implement "operator[][]" with boundaries control so that it's possible to access two-dimensional matrix directly using operators [].


Constructor & Destructor Documentation

Matrix::SecondIndex::SecondIndex ( Matrix matrix  )  [inline]

Constructor.

Parameters:
matrix Matrix on which this object operates

Matrix::SecondIndex::SecondIndex ( const SecondIndex  )  [private]

Matrix::SecondIndex::~SecondIndex (  )  [inline, private]


Member Function Documentation

SecondIndex& Matrix::SecondIndex::operator= ( const SecondIndex  )  [private]

Object & Matrix::SecondIndex::operator[] ( SizeType  secondIndex  ) 

Returns pointer to the selected object on the matrix.

Parameters:
secondIndex Second index
Notice: Do not make explicit calls of this operator. If you do, the behaviour is undefined. So the only clear way is to call Matrix::operator[].


Friends And Related Function Documentation

friend class Matrix [friend]


Member Data Documentation

Matrix* Matrix::SecondIndex::m [private]

Original matrix.

SizeType Matrix::SecondIndex::x [private]

Current first index.


The documentation for this class was generated from the following files:
Generated on Sun Apr 29 11:46:11 2007 for IPP/ICP2007 by  doxygen 1.4.7