SDIF::Matrix Class Reference

Contains frame data for an SDIF frame. More...

#include <SDIFMatrix.hxx>

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]
TypeId SDIF::Matrix::Type ( void   )  [inline]

Definition at line 67 of file SDIFMatrix.hxx.

References mHeader, and SDIF::MatrixHeader::mType.


Friends And Related Function Documentation

friend class File [friend]

Reimplemented in SDIF::ConcreteMatrix< T >.

Definition at line 49 of file SDIFMatrix.hxx.


Member Data Documentation


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