eLynx SDK v3.0.1
C++ image processing API reference

eLynx::Math::SingleRowMatrix Class Reference

#include <SingleRowMatrix.h>

Inheritance diagram for eLynx::Math::SingleRowMatrix:

eLynx::Math::IMatrix

List of all members.


Public Member Functions

 SingleRowMatrix (IVector &iVector)
 SingleRowMatrix (const SingleRowMatrix &iOther)
SingleRowMatrixoperator= (SingleRowMatrix &iOther)
virtual uint32 GetWidth () const
virtual uint32 GetHeight () const
virtual const double & operator() (uint32 iRow, uint32 iCol) const
virtual double & operator() (uint32 iRow, uint32 iCol)
virtual void SwapRows (uint32 iRow1, uint32 iRow2)
virtual void SwapCols (uint32 iCol1, uint32 iCol2)

Detailed Description

Adapter, that provides matrix-like read/write access to the vector. The vector is represented and 1 x N (single row) matrix.

Definition at line 35 of file SingleRowMatrix.h.


Constructor & Destructor Documentation

eLynx::Math::SingleRowMatrix::SingleRowMatrix ( IVector iVector  ) 

Constructor, creates matrix adapter for specified vector.

Parameters:
iVector the vector object

eLynx::Math::SingleRowMatrix::SingleRowMatrix ( const SingleRowMatrix iOther  ) 

Copy constructor

Parameters:
iOther the object to copy


Member Function Documentation

SingleRowMatrix& eLynx::Math::SingleRowMatrix::operator= ( SingleRowMatrix iOther  ) 

An assignement operator

Parameters:
iOther the object to copy
Returns:
the reference to this object

virtual uint32 eLynx::Math::SingleRowMatrix::GetWidth (  )  const [inline, virtual]

Returns the matrix width (number of columns) = size of the vector.

Returns:
the matrix width

Implements eLynx::Math::IMatrix.

Definition at line 54 of file SingleRowMatrix.h.

virtual uint32 eLynx::Math::SingleRowMatrix::GetHeight (  )  const [inline, virtual]

Returns the matrix height (number of rows) = 1

Returns:
the matrix height

Implements eLynx::Math::IMatrix.

Definition at line 58 of file SingleRowMatrix.h.

virtual const double& eLynx::Math::SingleRowMatrix::operator() ( uint32  iRow,
uint32  iCol 
) const [inline, virtual]

Matrix content access operator. Can be used in form Matrix(r, c).

Parameters:
iRow the row index (matrix has only one row)
iCol the column index (vector index)
Returns:
the const reference to appropriate vector value

Implements eLynx::Math::IMatrix.

Definition at line 64 of file SingleRowMatrix.h.

virtual double& eLynx::Math::SingleRowMatrix::operator() ( uint32  iRow,
uint32  iCol 
) [inline, virtual]

Matrix content access operator. Can be used in form Matrix(r, c).

Parameters:
iRow the row index (matrix has only one row)
iCol the column index (vector index)
Returns:
the reference to appropriate vector value

Implements eLynx::Math::IMatrix.

Definition at line 71 of file SingleRowMatrix.h.

virtual void eLynx::Math::SingleRowMatrix::SwapRows ( uint32  iRow1,
uint32  iRow2 
) [inline, virtual]

Swaps specified rows. As the matrix has only one row, it does nothing.

Implements eLynx::Math::IMatrix.

Definition at line 76 of file SingleRowMatrix.h.

virtual void eLynx::Math::SingleRowMatrix::SwapCols ( uint32  iCol1,
uint32  iCol2 
) [inline, virtual]

Swaps specified columns (vector values) of the matrix.

Parameters:
iCol1 the first column to swap
iCol2 the second column to swap

Implements eLynx::Math::IMatrix.

Definition at line 81 of file SingleRowMatrix.h.


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

Generated on 14 Apr 2009 by doxygen 1.5.8