From 720c5a33b6a49cf328fdd7611f49153cf8f60247 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 8 Apr 2020 14:51:57 +0300 Subject: Separate tests and examples into individual packages Also make cli module to be explicitly enabled via the config.cli configuration variable. --- cli/cli/traversal/class.hxx | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 cli/cli/traversal/class.hxx (limited to 'cli/cli/traversal/class.hxx') diff --git a/cli/cli/traversal/class.hxx b/cli/cli/traversal/class.hxx new file mode 100644 index 0000000..38cbefc --- /dev/null +++ b/cli/cli/traversal/class.hxx @@ -0,0 +1,41 @@ +// file : cli/traversal/class.hxx +// author : Boris Kolpackov +// license : MIT; see accompanying LICENSE file + +#ifndef CLI_TRAVERSAL_CLASS_HXX +#define CLI_TRAVERSAL_CLASS_HXX + +#include +#include + +namespace traversal +{ + struct inherits: edge + { + inherits () {} + inherits (node_dispatcher& n) {node_traverser (n);} + + virtual void + traverse (type&); + }; + + struct class_: scope_template + { + virtual void + traverse (type&); + + virtual void + pre (type&); + + virtual void + inherits (type&); + + virtual void + inherits (type&, edge_dispatcher&); + + virtual void + post (type&); + }; +} + +#endif // CLI_TRAVERSAL_CLASS_HXX -- cgit v1.1