diff options
Diffstat (limited to 'src/node.cc')
-rw-r--r-- | src/node.cc | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/node.cc b/src/node.cc index 96a24ba..9607b27 100644 --- a/src/node.cc +++ b/src/node.cc @@ -66,16 +66,22 @@ Response AbstractPolyNode::accept(class State &state, Visitor &visitor) const std::string AbstractNode::toString() const { - std::stringstream stream; - stream << "group()"; - return stream.str(); + return this->name() + "()"; +} + +std::string AbstractNode::name() const +{ + return "group"; } std::string AbstractIntersectionNode::toString() const { - std::stringstream stream; - stream << "intersection()"; - return stream.str(); + return this->name() + "()"; +} + +std::string AbstractIntersectionNode::name() const +{ + return "intersection_for"; } void AbstractNode::progress_prepare() |