aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2017-10-21 19:00:26 +0200
committerRenaud G <renaud@rolisteam.org>2017-10-21 19:00:26 +0200
commit6d216c231e8d4a6b97310f19c2083606886da81b (patch)
treeed67ed3c1816e2b9f1dc7fa342b4724f1382e266 /node
parent17c8a3738b8367cef726fa4bbbd23671b1270559 (diff)
downloadOneRoll-6d216c231e8d4a6b97310f19c2083606886da81b.tar.gz
OneRoll-6d216c231e8d4a6b97310f19c2083606886da81b.zip
-new API to set the previous node.
Diffstat (limited to 'node')
-rw-r--r--node/executionnode.cpp4
-rw-r--r--node/executionnode.h1
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