aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/valueslistnode.h
diff options
context:
space:
mode:
authorrenaud guezennec <renaud@rolisteam.org>2019-07-12 21:00:42 +0000
committerrenaud guezennec <renaud@rolisteam.org>2019-07-12 21:00:42 +0000
commit5c2fbf1edc7547333739d3d643c4abee5ce6f942 (patch)
tree6e9f4a709fd497fed1cf7f24bb2c3db421eb8711 /node/valueslistnode.h
parent4f495aaaecb3118b835504e9bc1347f934aa49d1 (diff)
parenta3c3551815845cbc4bdf891b5f01406414abd4d2 (diff)
downloadOneRoll-5c2fbf1edc7547333739d3d643c4abee5ce6f942.tar.gz
OneRoll-5c2fbf1edc7547333739d3d643c4abee5ce6f942.zip
Merge branch 'new_operator_and_fix' into 'master'
Value list node and occurence improvements See merge request kde/rolisteam-diceparser!1
Diffstat (limited to 'node/valueslistnode.h')
-rw-r--r--node/valueslistnode.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/node/valueslistnode.h b/node/valueslistnode.h
new file mode 100644
index 0000000..100f275
--- /dev/null
+++ b/node/valueslistnode.h
@@ -0,0 +1,24 @@
+#ifndef VALUESLISTNODE_H
+#define VALUESLISTNODE_H
+
+#include "executionnode.h"
+#include "result/diceresult.h"
+
+class ValuesListNode : public ExecutionNode
+{
+public:
+ ValuesListNode();
+
+ virtual void run(ExecutionNode* previous= nullptr) override;
+ virtual QString toString(bool) const override;
+ virtual qint64 getPriority() const override;
+ virtual ExecutionNode* getCopy() const override;
+
+ void insertValue(ExecutionNode*);
+
+private:
+ std::vector<ExecutionNode*> m_data;
+ DiceResult* m_diceResult = nullptr;
+};
+
+#endif // VALUESLISTNODE_H