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

SDIFMatrix - Read and write and create a SDIFMatrix


Functions

int Write (SdifFileT *file)
int Read (SdifFileT *file)
void Init (SdifSignature sig, int nrows, int ncols, SdifDataTypeET type) throw (SDIFMatrixDataError,std::bad_alloc)
 Re-Initialize matrix to hold data.

void Init (const std::string &sig, int nrows, int ncols, SdifDataTypeET type) throw (SDIFMatrixDataError,std::bad_alloc)
 Re-Initialize matrix to hold data.

bool Resize (int nrows, int ncols)
 Resize matrix to hold rowsxcolumns.

bool Clear ()
 clear matrix


Function Documentation

int Easdif::SDIFMatrix::Write SdifFileT *    file [inherited]
 

write the matrix in the file

Returns:
the size in bytes of the matrix writing

int Easdif::SDIFMatrix::Read SdifFileT *    file [inherited]
 

read a matrix

Returns:
the count of bytes and create a matrix which keep the values

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 Mon Feb 2 19:27:12 2004 for Easdif by doxygen1.2.16