diff options
| author | 2019-07-12 21:00:42 +0000 | |
|---|---|---|
| committer | 2019-07-12 21:00:42 +0000 | |
| commit | 5c2fbf1edc7547333739d3d643c4abee5ce6f942 (patch) | |
| tree | 6e9f4a709fd497fed1cf7f24bb2c3db421eb8711 /node/occurencecountnode.h | |
| parent | 4f495aaaecb3118b835504e9bc1347f934aa49d1 (diff) | |
| parent | a3c3551815845cbc4bdf891b5f01406414abd4d2 (diff) | |
| download | OneRoll-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/occurencecountnode.h')
| -rw-r--r-- | node/occurencecountnode.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/node/occurencecountnode.h b/node/occurencecountnode.h index 125f340..492b295 100644 --- a/node/occurencecountnode.h +++ b/node/occurencecountnode.h @@ -24,6 +24,7 @@ #include "validator.h" class StringResult; +class DiceResult; class OccurenceCountNode : public ExecutionNode { public: @@ -45,10 +46,15 @@ public: void setValidator(Validator* validator); private: + void runForStringResult(const std::map<qint64, qint64>& mapOccurence, QVector<qint64>& vec); + void runForDiceResult(const std::map<qint64, qint64>& mapOccurence); + +private: qint64 m_width= 1; qint64 m_height= 0; Validator* m_validator= nullptr; StringResult* m_stringResult= nullptr; + DiceResult* m_diceResult= nullptr; }; #endif // OCCURENCECOUNTNODE_H |