From 6d216c231e8d4a6b97310f19c2083606886da81b Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 21 Oct 2017 19:00:26 +0200 Subject: -new API to set the previous node. --- node/executionnode.cpp | 4 ++++ node/executionnode.h | 1 + 2 files changed, 5 insertions(+) (limited to 'node') 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 -- cgit v1.2.3-70-g09d2