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/traversal/option.hxx | 74 ------------------------------------------------ 1 file changed, 74 deletions(-) delete mode 100644 cli/traversal/option.hxx (limited to 'cli/traversal/option.hxx') diff --git a/cli/traversal/option.hxx b/cli/traversal/option.hxx deleted file mode 100644 index e11fa21..0000000 --- a/cli/traversal/option.hxx +++ /dev/null @@ -1,74 +0,0 @@ -// file : cli/traversal/option.hxx -// author : Boris Kolpackov -// license : MIT; see accompanying LICENSE file - -#ifndef CLI_TRAVERSAL_OPTION_HXX -#define CLI_TRAVERSAL_OPTION_HXX - -#include -#include - -namespace traversal -{ - struct belongs: edge - { - belongs () - { - } - - belongs (node_dispatcher& n) - { - node_traverser (n); - } - - virtual void - traverse (type&); - }; - - struct initialized: edge - { - initialized () - { - } - - initialized (node_dispatcher& n) - { - node_traverser (n); - } - - virtual void - traverse (type&); - }; - - struct option: node - { - virtual void - traverse (type&); - - virtual void - pre (type&); - - virtual void - belongs (type&); - - virtual void - initialized (type&); - - virtual void - post (type&); - - void - belongs (type& o, edge_dispatcher& d) - { - d.dispatch (o.belongs ()); - } - - void - initialized (type& o, edge_dispatcher& d) - { - d.dispatch (o.initialized ()); - } - }; -} - -#endif // CLI_TRAVERSAL_OPTION_HXX -- cgit v1.1