Contains frame data for an SDIF frame. More...
#include <SDIFMatrix.hxx>
Public Member Functions | |
| virtual | ~Matrix () |
| TypeId | Type (void) |
| CLAM::TInt32 | Rows (void) |
| CLAM::TInt32 | Columns (void) |
| CLAM::TInt32 | SizeInFile (void) |
Protected Member Functions | |
| Matrix (const MatrixHeader &header) | |
| Matrix (const TypeId &type=TypeId::sDefault, DataType dataType=eUnknown, CLAM::TInt32 nRows=0, CLAM::TInt32 nColumns=0) | |
| virtual char * | GetPtr (void)=0 |
| virtual void | Resize (int nElems)=0 |
| virtual void | SetSize (int nElems)=0 |
Protected Attributes | |
| MatrixHeader | mHeader |
Friends | |
| class | File |
Contains frame data for an SDIF frame.
The data in a Frames are stored in 2D matrices. Each column corresponds to a parameter like frequency or amplitude and each row represents an object like a filter, sinusoid, or noise band. Each Matrix starts with a MatrixHeader, that contains a type id, and the dimensions of the matrix.
As Matrixes are stored in a linked list in the Frames, each Matrix has a pointer to the next matrix inside the frame.
Definition at line 47 of file SDIFMatrix.hxx.
| SDIF::Matrix::Matrix | ( | const MatrixHeader & | header | ) | [inline, protected] |
Definition at line 53 of file SDIFMatrix.hxx.
| SDIF::Matrix::Matrix | ( | const TypeId & | type = TypeId::sDefault, |
|
| DataType | dataType = eUnknown, |
|||
| CLAM::TInt32 | nRows = 0, |
|||
| CLAM::TInt32 | nColumns = 0 | |||
| ) | [protected] |
Definition at line 27 of file SDIFMatrix.cxx.
| virtual SDIF::Matrix::~Matrix | ( | ) | [inline, virtual] |
Definition at line 65 of file SDIFMatrix.hxx.
| CLAM::TInt32 SDIF::Matrix::Columns | ( | void | ) | [inline] |
Definition at line 70 of file SDIFMatrix.hxx.
References mHeader, and SDIF::MatrixHeader::mnColumns.
Referenced by SDIF::ConcreteMatrix< T >::ConcreteMatrix().
| virtual char* SDIF::Matrix::GetPtr | ( | void | ) | [protected, pure virtual] |
Implemented in SDIF::ConcreteMatrix< T >.
| virtual void SDIF::Matrix::Resize | ( | int | nElems | ) | [protected, pure virtual] |
Implemented in SDIF::ConcreteMatrix< T >.
| CLAM::TInt32 SDIF::Matrix::Rows | ( | void | ) | [inline] |
Definition at line 69 of file SDIFMatrix.hxx.
References mHeader, and SDIF::MatrixHeader::mnRows.
Referenced by SDIF::ConcreteMatrix< T >::ConcreteMatrix().
| virtual void SDIF::Matrix::SetSize | ( | int | nElems | ) | [protected, pure virtual] |
Implemented in SDIF::ConcreteMatrix< T >.
| CLAM::TInt32 SDIF::Matrix::SizeInFile | ( | void | ) | [inline] |
Definition at line 71 of file SDIFMatrix.hxx.
References SDIF::MatrixHeader::mDataType, mHeader, SDIF::MatrixHeader::mnColumns, SDIF::MatrixHeader::mnRows, and SDIF::MatrixHeader::SizeInFile().
Referenced by SDIF::Frame::Add().
| TypeId SDIF::Matrix::Type | ( | void | ) | [inline] |
Definition at line 67 of file SDIFMatrix.hxx.
References mHeader, and SDIF::MatrixHeader::mType.
friend class File [friend] |
Reimplemented in SDIF::ConcreteMatrix< T >.
Definition at line 49 of file SDIFMatrix.hxx.
MatrixHeader SDIF::Matrix::mHeader [protected] |
Definition at line 51 of file SDIFMatrix.hxx.
Referenced by Columns(), SDIF::ConcreteMatrix< T >::GetValue(), Rows(), SDIF::ConcreteMatrix< T >::SetValue(), SizeInFile(), and Type().
1.6.3