2019-03-02 20:20:23 +01:00
|
|
|
#ifndef MATRIXDATA_H
|
|
|
|
#define MATRIXDATA_H
|
|
|
|
|
|
|
|
#include <QList>
|
|
|
|
|
|
|
|
struct itemData {
|
2019-03-16 20:34:09 +01:00
|
|
|
double dReal=0.0;
|
|
|
|
double dImaginary=0.0;
|
2019-03-02 20:20:23 +01:00
|
|
|
QString sValue=QStringLiteral("NaH");
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class MatrixData
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
QList<QList<itemData>*> matrix;
|
|
|
|
|
|
|
|
public:
|
|
|
|
MatrixData();
|
|
|
|
itemData at(int,int);
|
|
|
|
void insert(int,int,itemData);
|
|
|
|
void clear();
|
|
|
|
int rows();
|
2019-03-09 15:39:38 +01:00
|
|
|
void addRow(int);
|
2019-03-02 20:20:23 +01:00
|
|
|
int columns();
|
2019-03-09 15:39:38 +01:00
|
|
|
void resize(int,int);
|
|
|
|
void upsize(int,int);
|
|
|
|
void matchsize();
|
2019-03-02 20:20:23 +01:00
|
|
|
~ MatrixData();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MATRIXDATA_H
|