CLAM-Development
1.4.0
|
#include <SDIFMatrix.hxx>
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) |
T | 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. | |
![]() | |
virtual | ~Matrix () |
TypeId | Type (void) |
CLAM::TInt32 | Rows (void) |
CLAM::TInt32 | Columns (void) |
CLAM::TInt32 | SizeInFile (void) |
Friends | |
class | File |
Additional Inherited Members | |
![]() | |
Matrix (const MatrixHeader &header) | |
Matrix (const TypeId &type=TypeId::sDefault, DataType dataType=eUnknown, CLAM::TInt32 nRows=0, CLAM::TInt32 nColumns=0) | |
![]() | |
MatrixHeader | mHeader |
Definition at line 82 of file SDIFMatrix.hxx.
|
inline |
Create a new Matrix.
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().
|
inline |
Definition at line 104 of file SDIFMatrix.hxx.
References SDIF::Matrix::Columns(), SDIF::ConcreteMatrix< T >::Resize(), SDIF::Matrix::Rows(), and SDIF::ConcreteMatrix< T >::SetSize().
|
inlinevirtual |
Implements SDIF::Matrix.
Definition at line 112 of file SDIFMatrix.hxx.
|
inline |
Lookup a value in the matrix.
row,col | coordinates of the value |
Definition at line 121 of file SDIFMatrix.hxx.
References SDIF::Matrix::mHeader, and SDIF::MatrixHeader::mnColumns.
|
inlinevirtual |
Implements SDIF::Matrix.
Definition at line 113 of file SDIFMatrix.hxx.
Referenced by SDIF::ConcreteMatrix< T >::ConcreteMatrix().
|
inlinevirtual |
Implements SDIF::Matrix.
Definition at line 114 of file SDIFMatrix.hxx.
Referenced by SDIF::ConcreteMatrix< T >::ConcreteMatrix().
|
inline |
Set a value in the matrix.
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().
|
friend |
Reimplemented from SDIF::Matrix.
Definition at line 84 of file SDIFMatrix.hxx.