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

Easdif::SDIFMatrix Class Reference

class which can be associated with a matrix More...

#include <sdifmatrix.h>

Collaboration diagram for Easdif::SDIFMatrix:

Collaboration graph
[legend]
List of all members.

Public Methods

 SDIFMatrix (const SdifDataTypeET _type=eFloat4)
 default constructor

SDIFMatrix & operator= (const SDIFMatrix &aMatrix)
 assignment operator

 SDIFMatrix (const SDIFMatrix &aMatrix)
 copy constrctor

 SDIFMatrix (SdifSignature sig, int nrows=1, int ncols=1, SdifDataTypeET type=eFloat4)
 constructor that allocates internal memory

 SDIFMatrix (const std::string &sig, int nrows=1, int ncols=1, SdifDataTypeET type=eFloat4)
 constructor that allocates internal memory

void Print ()
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

int GetSize () const
int GetNbRows () const
int GetNbCols () const
SdifSignature GetSignature () const
std::string GetStringSignature () const
SdifDataTypeET GetType () const
std::string GetColName (int i) const
int GetInt (int i, int j)
float GetFloat (int i, int j)
double GetDouble (int i, int j)
template<typename Tout> void Get (int i, int j, Tout &value)
 get a value in form of given type

template<typename Tin> void Set (int i, int j, const Tin &value)
 set a value using arbitrary input type

void Set (const std::string &str)

Detailed Description

class which can be associated with a matrix

SDIFMatrix is composed of different methods which permits to manipulate a matrix.


Member Function Documentation

void Easdif::SDIFMatrix::Set const std::string &    str [inline]
 

Set matrix type to eText, change matrix size to num. of bytes in string and set string data


The documentation for this class was generated from the following files:
Generated on Mon Feb 2 19:27:26 2004 for Easdif by doxygen1.2.16