SDIF::ConcreteMatrix< T > Class Template Reference

#include <SDIFMatrix.hxx>

List of all members.

Public Member Functions

 ConcreteMatrix (const TypeId &type=TypeId::sDefault, CLAM::TInt32 nRows=0, CLAM::TInt32 nColumns=0)
 Create a new Matrix.
 ConcreteMatrix (const MatrixHeader &header)
char * GetPtr (void)
void Resize (int nElems)
void SetSize (int nElems)
GetValue (CLAM::TInt32 row, CLAM::TInt32 col)
 Lookup a value in the matrix.
void SetValue (CLAM::TInt32 row, CLAM::TInt32 col, const T &val)
 Set a value in the matrix.

Friends

class File

Detailed Description

template<class T = CLAM::TFloat32>
class SDIF::ConcreteMatrix< T >

Definition at line 82 of file SDIFMatrix.hxx.


Constructor & Destructor Documentation

template<class T = CLAM::TFloat32>
SDIF::ConcreteMatrix< T >::ConcreteMatrix ( const TypeId type = TypeId::sDefault,
CLAM::TInt32  nRows = 0,
CLAM::TInt32  nColumns = 0 
) [inline]

Create a new Matrix.

Parameters:
type Identifier specifying the matrix type
dataType Identifier specifying the type of data type in the matrix
nRows Number of rows in the matrix
nColumns Number of rows in the matrix

Definition at line 94 of file SDIFMatrix.hxx.

References SDIF::Matrix::Columns(), SDIF::ConcreteMatrix< T >::Resize(), SDIF::Matrix::Rows(), and SDIF::ConcreteMatrix< T >::SetSize().

template<class T = CLAM::TFloat32>
SDIF::ConcreteMatrix< T >::ConcreteMatrix ( const MatrixHeader header  )  [inline]

Member Function Documentation

template<class T = CLAM::TFloat32>
char* SDIF::ConcreteMatrix< T >::GetPtr ( void   )  [inline, virtual]

Implements SDIF::Matrix.

Definition at line 112 of file SDIFMatrix.hxx.

template<class T = CLAM::TFloat32>
T SDIF::ConcreteMatrix< T >::GetValue ( CLAM::TInt32  row,
CLAM::TInt32  col 
) [inline]

Lookup a value in the matrix.

Parameters:
row,col coordinates of the value
Returns:
The indicated value

Definition at line 121 of file SDIFMatrix.hxx.

References SDIF::Matrix::mHeader, and SDIF::MatrixHeader::mnColumns.

template<class T = CLAM::TFloat32>
void SDIF::ConcreteMatrix< T >::Resize ( int  nElems  )  [inline, virtual]

Implements SDIF::Matrix.

Definition at line 113 of file SDIFMatrix.hxx.

Referenced by SDIF::ConcreteMatrix< T >::ConcreteMatrix().

template<class T = CLAM::TFloat32>
void SDIF::ConcreteMatrix< T >::SetSize ( int  nElems  )  [inline, virtual]

Implements SDIF::Matrix.

Definition at line 114 of file SDIFMatrix.hxx.

Referenced by SDIF::ConcreteMatrix< T >::ConcreteMatrix().

template<class T = CLAM::TFloat32>
void SDIF::ConcreteMatrix< T >::SetValue ( CLAM::TInt32  row,
CLAM::TInt32  col,
const T &  val 
) [inline]

Set a value in the matrix.

Parameters:
row,col coordinates of the value
val The new value

Definition at line 130 of file SDIFMatrix.hxx.

References SDIF::Matrix::mHeader, and SDIF::MatrixHeader::mnColumns.

Referenced by CLAM::SDIFOut::Do().


Friends And Related Function Documentation

template<class T = CLAM::TFloat32>
friend class File [friend]

Reimplemented from SDIF::Matrix.

Definition at line 84 of file SDIFMatrix.hxx.


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.3