CLAM-Development  1.4.0
Public Member Functions | Friends
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.
- Public Member Functions inherited from SDIF::Matrix
virtual ~Matrix ()
TypeId Type (void)
CLAM::TInt32 Rows (void)
CLAM::TInt32 Columns (void)
CLAM::TInt32 SizeInFile (void)

Friends

class File

Additional Inherited Members

- Protected Member Functions inherited from SDIF::Matrix
 Matrix (const MatrixHeader &header)
 Matrix (const TypeId &type=TypeId::sDefault, DataType dataType=eUnknown, CLAM::TInt32 nRows=0, CLAM::TInt32 nColumns=0)
- Protected Attributes inherited from SDIF::Matrix
MatrixHeader mHeader

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:
typeIdentifier specifying the matrix type
dataTypeIdentifier specifying the type of data type in the matrix
nRowsNumber of rows in the matrix
nColumnsNumber 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  )
inlinevirtual

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,colcoordinates 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)
inlinevirtual

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)
inlinevirtual

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,colcoordinates of the value
valThe 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: