#include <sdifmatrix.h>
Collaboration diagram for Easdif::SDIFMatrix:
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) |
SDIFMatrix is composed of different methods which permits to manipulate a matrix.
|
Set matrix type to eText, change matrix size to num. of bytes in string and set string data |