summaryrefslogtreecommitdiff
path: root/gui/registerview.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/registerview.h')
-rw-r--r--gui/registerview.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/gui/registerview.h b/gui/registerview.h
index e4cb940..cc5a1f8 100644
--- a/gui/registerview.h
+++ b/gui/registerview.h
@@ -18,8 +18,8 @@
#ifndef REGISTERVIEW_H
#define REGISTERVIEW_H
-#include <QAbstractTableModel>
#include "storageview.h"
+#include <QAbstractTableModel>
#include <QVector>
// see https://doc.qt.io/qt-6/qabstracttablemodel.html
@@ -43,6 +43,22 @@ class RegisterView : public StorageView
int section,
Qt::Orientation o,
int role = Qt::DisplayRole) const override;
+
+ /**
+ * @param field to assign to `this->gprs'.
+ * @param field to assign to `this->vrs'.
+ */
+ void set_data(const QVector<int> &gprs, const QVector<QVector<int>> &vrs);
+
+ private:
+ /**
+ * The general purpose registers.
+ */
+ QVector<int> gprs;
+ /**
+ * The vector registers.
+ */
+ QVector<QVector<int>> vrs;
};
#endif // REGISTERVIEW_H