eLynx SDK v3.3.0
C++ image processing API reference
Public Member Functions

eLynx::Math::MatrixRowVector Class Reference

Adapter, that provides vector-like read/write access to the row of the matrix. More...

#include <MatrixRowVector.h>

Inheritance diagram for eLynx::Math::MatrixRowVector:
eLynx::Math::IVector

List of all members.

Public Member Functions

 MatrixRowVector (IMatrix &iMatrix, uint32 iRow)
 Constructor, creates an row vector adapter above specified matrix and its row.
 MatrixRowVector (const MatrixRowVector &iC)
 Copy constructor.
MatrixRowVectoroperator= (const MatrixRowVector &iC)
 An assignement operator.
virtual uint32 GetSize () const
 Returns the vector size (matrix row width).
virtual const double & operator() (uint32 iIndex) const
 Vector access operator - returns reference to particular value of the matrix row.
virtual double & operator() (uint32 iIndex)
 Vector access operator - returns reference to particular value of the matrix row.
virtual void SwapValues (uint32 iIndex1, uint32 iIndex2)
 Swaps specified vector (row) values.

Detailed Description

Adapter, that provides vector-like read/write access to the row of the matrix.

Adapter references a matrix and row index and acts like a vector of the same size and content as the specified row.


Constructor & Destructor Documentation

eLynx::Math::MatrixRowVector::MatrixRowVector ( IMatrix iMatrix,
uint32  iRow 
)

Constructor, creates an row vector adapter above specified matrix and its row.

Parameters:
iMatrixthe matrix
iRowthe index of the matrix row
eLynx::Math::MatrixRowVector::MatrixRowVector ( const MatrixRowVector iC )

Copy constructor.

Parameters:
iCthe object to be copied

Member Function Documentation

virtual uint32 eLynx::Math::MatrixRowVector::GetSize (  ) const [inline, virtual]

Returns the vector size (matrix row width).

Returns:
the size of the vector

Implements eLynx::Math::IVector.

virtual double& eLynx::Math::MatrixRowVector::operator() ( uint32  iIndex ) [inline, virtual]

Vector access operator - returns reference to particular value of the matrix row.

Parameters:
iIndexthe index in the vector/row
Returns:
the reference to the row value

Implements eLynx::Math::IVector.

virtual const double& eLynx::Math::MatrixRowVector::operator() ( uint32  iIndex ) const [inline, virtual]

Vector access operator - returns reference to particular value of the matrix row.

Parameters:
iIndexthe index in the vector/row
Returns:
the const reference to the row value

Implements eLynx::Math::IVector.

MatrixRowVector& eLynx::Math::MatrixRowVector::operator= ( const MatrixRowVector iC )

An assignement operator.

Parameters:
iCthe object to be copied
Returns:
the reference to this object
virtual void eLynx::Math::MatrixRowVector::SwapValues ( uint32  iIndex1,
uint32  iIndex2 
) [virtual]

Swaps specified vector (row) values.

Parameters:
iIndex1the index of the first value
iIndex2the index of the second value

Implements eLynx::Math::IVector.


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

Generated on Thu Dec 9 2010 by doxygen 1.7.2