From 13e297604b00615d47352538e3c82ea1ac700d4c Mon Sep 17 00:00:00 2001 From: Renaud G Date: Mon, 28 Nov 2016 00:36:15 +0100 Subject: -Add API for copying a branch of execution node. -Allow to use if node several times. --- node/parenthesesnode.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'node/parenthesesnode.cpp') diff --git a/node/parenthesesnode.cpp b/node/parenthesesnode.cpp index 7eefaba..2383226 100644 --- a/node/parenthesesnode.cpp +++ b/node/parenthesesnode.cpp @@ -66,3 +66,17 @@ qint64 ParenthesesNode::getPriority() const qint64 priority=3; return priority; } +ExecutionNode* ParenthesesNode::getCopy() const +{ + ParenthesesNode* node = new ParenthesesNode(); + if(NULL!=m_internalNode) + { + node->setInternelNode(m_internalNode->getCopy()); + } + if(NULL!=m_nextNode) + { + node->setNextNode(m_nextNode->getCopy()); + } + return node; + +} -- cgit v1.2.3-70-g09d2