#include <sdifmatrix.hpp>
Collaboration diagram for Easdif::SDIFMatrix:
Public Member Functions | |
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, const std::set< SdifSignature > *hlsel=0) |
read a matrix filter only matrices that match the set given in hlsel | |
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 |
void | SetSignature (SdifSignature sig) |
Set one element of the matrix header : the signature. | |
void | SetSignature (const std::string &signature) |
Set one element of the matrix header : the signature with a string. | |
int | GetUChar (int i, int j) const |
int | GetInt (int i, int j) const |
float | GetFloat (int i, int j) const |
double | GetDouble (int i, int j) const |
template<typename Tout> | |
void | Get (int i, int j, Tout &value) |
get a value in form of given type | |
template<class TT> | |
void | GetRow (TT *out, int irow) const throw (SDIFArrayPosition) |
template<class TT> | |
void | GetCol (TT *out, int icol) const throw (SDIFArrayPosition) |
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) |
template<class TT> | |
void | SetRow (const TT *out, int irow) throw (SDIFArrayPosition) |
template<class TT> | |
void | SetCol (const TT *out, int icol) throw (SDIFArrayPosition) |
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 |