#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. | |
Friends | |
| class | File |
Definition at line 82 of file SDIFMatrix.hxx.
| SDIF::ConcreteMatrix< T >::ConcreteMatrix | ( | const TypeId & | type = TypeId::sDefault, |
|
| CLAM::TInt32 | nRows = 0, |
|||
| CLAM::TInt32 | nColumns = 0 | |||
| ) | [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().
| SDIF::ConcreteMatrix< T >::ConcreteMatrix | ( | const MatrixHeader & | header | ) | [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().
| char* SDIF::ConcreteMatrix< T >::GetPtr | ( | void | ) | [inline, virtual] |
Implements SDIF::Matrix.
Definition at line 112 of file SDIFMatrix.hxx.
| T SDIF::ConcreteMatrix< T >::GetValue | ( | CLAM::TInt32 | row, | |
| CLAM::TInt32 | col | |||
| ) | [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.
| 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().
| 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().
| void SDIF::ConcreteMatrix< T >::SetValue | ( | CLAM::TInt32 | row, | |
| CLAM::TInt32 | col, | |||
| const T & | val | |||
| ) | [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 class File [friend] |
Reimplemented from SDIF::Matrix.
Definition at line 84 of file SDIFMatrix.hxx.
1.6.3