Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members

SDIFMatrix - Construction


Functions

 Easdif::SDIFMatrix::SDIFMatrix (const SdifDataTypeET _type=eFloat4)
 default constructor
SDIFMatrix & Easdif::SDIFMatrix::operator= (const SDIFMatrix &aMatrix)
 assignment operator
 Easdif::SDIFMatrix::SDIFMatrix (const SDIFMatrix &aMatrix)
 copy constrctor
 Easdif::SDIFMatrix::SDIFMatrix (SdifSignature sig, int nrows=1, int ncols=1, SdifDataTypeET type=eFloat4)
 constructor that allocates internal memory
 Easdif::SDIFMatrix::SDIFMatrix (const std::string &sig, int nrows=1, int ncols=1, SdifDataTypeET type=eFloat4)
 constructor that allocates internal memory
void Easdif::SDIFMatrix::Init (SdifSignature sig, int nrows, int ncols, SdifDataTypeET type) throw (SDIFMatrixDataError,std::bad_alloc)
 Re-Initialize matrix to hold data.
void Easdif::SDIFMatrix::Init (const std::string &sig, int nrows, int ncols, SdifDataTypeET type) throw (SDIFMatrixDataError,std::bad_alloc)
 Re-Initialize matrix to hold data.
bool Easdif::SDIFMatrix::Resize (int nrows, int ncols)
 Resize matrix to hold rowsxcolumns.
bool Easdif::SDIFMatrix::Clear ()
 clear matrix

Function Documentation

Easdif::SDIFMatrix::SDIFMatrix const SdifDataTypeET  _type = eFloat4  )  [inherited]
 

default constructor

Constructs matrix without allocating memory. However, the type for internal data representation is fixed.

Parameters:
_type data type for internal representation defaults to: eFloat
supported types: eChar, eInt2, eUInt2, eInt4, eUInt4, eFloat4 , eFloat8.
type extensions: eInt1, eUInt1.
Attention the types eInt1 and eUInt1 are not yet in the sdif standard and if you use them only the IRCAM sdif library will be able to read your data.

SDIFMatrix & Easdif::SDIFMatrix::operator= const SDIFMatrix aMatrix  )  [inherited]
 

assignment operator

does a deep copy of the data

Parameters:
aMatrix matrix to copy

Easdif::SDIFMatrix::SDIFMatrix const SDIFMatrix aMatrix  )  [inherited]
 

copy constrctor

does a deep copy of the data

Parameters:
aMatrix 

Easdif::SDIFMatrix::SDIFMatrix SdifSignature  sig,
int  nrows = 1,
int  ncols = 1,
SdifDataTypeET  type = eFloat4
[inherited]
 

constructor that allocates internal memory

Constructs matrix with given signature to hold given number of rows and columns. The type for internal data representation is fixed.

Parameters:
sig Matrix signature
nrows number of rows allocated
ncols number of cols allocated
type data type for internal representation defaults to: eFloat
supported types: eChar, eInt2, eUInt2, eInt4, eUInt4, eFloat4 , eFloat8.
type extensions: eInt1, eUInt1.
Attention the types eInt1 and eUInt1 are not yet in the sdif standard and if you use them only the IRCAM sdif library will be able to read your data.

Easdif::SDIFMatrix::SDIFMatrix const std::string &  sig,
int  nrows = 1,
int  ncols = 1,
SdifDataTypeET  type = eFloat4
[inherited]
 

constructor that allocates internal memory

Constructs matrix with given signature to hold given number of rows and columns. The type for internal data representation is fixed.

Parameters:
sig 4 element string specifying Matrix signature
nrows number of rows allocated
ncols number of cols allocated
type data type for internal representation defaults to: eFloat
supported types: eChar, eInt2, eUInt2, eInt4, eUInt4, eFloat4 , eFloat8.
type extensions: eInt1, eUInt1.
Attention the types eInt1 and eUInt1 are not yet in the sdif standard and if you use them only the IRCAM sdif library will be able to read your data.

void Easdif::SDIFMatrix::Init SdifSignature  sig,
int  nrows,
int  ncols,
SdifDataTypeET  type
throw (SDIFMatrixDataError,std::bad_alloc) [inherited]
 

Re-Initialize matrix to hold data.

Parameters:
sig SDIFMatrix Signature
nrows Number of rows fo the matrix
ncols Number of columns of the matrix
type SDIFDataType = type of internal representation of the matrix

void Easdif::SDIFMatrix::Init const std::string &  sig,
int  nrows,
int  ncols,
SdifDataTypeET  type
throw (SDIFMatrixDataError,std::bad_alloc) [inherited]
 

Re-Initialize matrix to hold data.

Parameters:
sig SDIFMatrix Signature
nrows Number of rows fo the matrix
ncols Number of columns of the matrix
type SDIFDataType = type of internal representation of the matrix

bool Easdif::SDIFMatrix::Resize int  nrows,
int  ncols
[inherited]
 

Resize matrix to hold rowsxcolumns.

Existing data is preserved in the correct locations newly initilized data is set to zero

Parameters:
nrows Number of rows fo the matrix
ncols Number of columns of the matrix
Returns:
true if successful/false if matrix has not yet been initialized to a signature/data type

bool Easdif::SDIFMatrix::Clear  )  [inherited]
 

clear matrix

all data entries are set to zero.

Returns:
true if successful/false if matrix has not yet been initialized to a signature/data type


Generated on Tue Jan 3 15:00:56 2006 for Easdif by  doxygen 1.3.9.1