summaryrefslogtreecommitdiff
path: root/odb/traversal/class.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/traversal/class.hxx')
-rw-r--r--odb/traversal/class.hxx42
1 files changed, 42 insertions, 0 deletions
diff --git a/odb/traversal/class.hxx b/odb/traversal/class.hxx
new file mode 100644
index 0000000..d871832
--- /dev/null
+++ b/odb/traversal/class.hxx
@@ -0,0 +1,42 @@
+// file : odb/traversal/class.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef ODB_TRAVERSAL_CLASS_HXX
+#define ODB_TRAVERSAL_CLASS_HXX
+
+#include <traversal/elements.hxx>
+#include <semantics/class.hxx>
+
+namespace traversal
+{
+ struct inherits: edge<semantics::inherits>
+ {
+ inherits ()
+ {
+ }
+
+ inherits (node_dispatcher& n)
+ {
+ node_traverser (n);
+ }
+
+ virtual void
+ traverse (type&);
+ };
+
+ struct class_: scope_template<semantics::class_>
+ {
+ virtual void
+ traverse (type&);
+
+ virtual void
+ inherits (type&);
+
+ virtual void
+ inherits (type&, edge_dispatcher&);
+ };
+}
+
+#endif // ODB_TRAVERSAL_CLASS_HXX