aboutsummaryrefslogtreecommitdiff
path: root/NodeVisitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'NodeVisitor.h')
-rw-r--r--NodeVisitor.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/NodeVisitor.h b/NodeVisitor.h
new file mode 100644
index 0000000..f98a8ba
--- /dev/null
+++ b/NodeVisitor.h
@@ -0,0 +1,11 @@
+#pragma once
+
+class Node;
+class NodeOutput;
+
+class NodeVisitor {
+public:
+ virtual void visit(NodeOutput & node) = 0;
+ virtual void visit(Node & node) = 0;
+};
+