diff options
| author | 2017-10-21 19:00:26 +0200 | |
|---|---|---|
| committer | 2017-10-21 19:00:26 +0200 | |
| commit | 6d216c231e8d4a6b97310f19c2083606886da81b (patch) | |
| tree | ed67ed3c1816e2b9f1dc7fa342b4724f1382e266 /node | |
| parent | 17c8a3738b8367cef726fa4bbbd23671b1270559 (diff) | |
| download | OneRoll-6d216c231e8d4a6b97310f19c2083606886da81b.tar.gz OneRoll-6d216c231e8d4a6b97310f19c2083606886da81b.zip | |
-new API to set the previous node.
Diffstat (limited to 'node')
| -rw-r--r-- | node/executionnode.cpp | 4 | ||||
| -rw-r--r-- | node/executionnode.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/node/executionnode.cpp b/node/executionnode.cpp index a419bec..c8c62f2 100644 --- a/node/executionnode.cpp +++ b/node/executionnode.cpp @@ -29,6 +29,10 @@ void ExecutionNode::setNextNode(ExecutionNode* node) { m_nextNode = node; } +void ExecutionNode::setPreviousNode(ExecutionNode* node) +{ + m_previousNode = node; +} ExecutionNode* ExecutionNode::getNextNode() { return m_nextNode; diff --git a/node/executionnode.h b/node/executionnode.h index 7a00db8..c57b8b1 100644 --- a/node/executionnode.h +++ b/node/executionnode.h @@ -43,6 +43,7 @@ public: * @return */ virtual ExecutionNode* getPreviousNode() const; + void setPreviousNode(ExecutionNode* node); /** * @brief toString * @return |