diff options
| author | 2016-11-28 00:36:15 +0100 | |
|---|---|---|
| committer | 2016-11-28 00:36:15 +0100 | |
| commit | 13e297604b00615d47352538e3c82ea1ac700d4c (patch) | |
| tree | 567efe03594d261831897f03a7821c4c6eeac59b /range.cpp | |
| parent | cdd1716bd1aa8d9bbd0137aa98ff24867b6b3a0e (diff) | |
| download | OneRoll-13e297604b00615d47352538e3c82ea1ac700d4c.tar.gz OneRoll-13e297604b00615d47352538e3c82ea1ac700d4c.zip | |
-Add API for copying a branch of execution node.
-Allow to use if node several times.
Diffstat (limited to 'range.cpp')
| -rw-r--r-- | range.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -100,3 +100,17 @@ bool Range::isEmptyRange() { return m_emptyRange; } +Validator* Range::getCopy() const +{ + Range* val = new Range(); + val->setEmptyRange(m_emptyRange); + if(m_hasEnd) + { + val->setEnd(m_end); + } + if(m_hasStart) + { + val->setStart(m_start); + } + return val; +} |