mirror of
https://github.com/Indy970/QtHPConnect
synced 2024-11-15 19:48:02 +01:00
32 lines
523 B
C++
32 lines
523 B
C++
#ifndef MATRIXDATA_H
|
|
#define MATRIXDATA_H
|
|
|
|
#include <QList>
|
|
|
|
struct itemData {
|
|
double dReal=0.0;
|
|
double dImaginary=0.0;
|
|
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();
|
|
void addRow(int);
|
|
int columns();
|
|
void resize(int,int);
|
|
void upsize(int,int);
|
|
void matchsize();
|
|
~ MatrixData();
|
|
};
|
|
|
|
#endif // MATRIXDATA_H
|