1 2 3 4 5 6 7 8 9 10 11
#pragma once class Node; class NodeOutput; class NodeVisitor { public: virtual void visit(NodeOutput & node) = 0; virtual void visit(Node & node) = 0; };