diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-01-22 15:58:08 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-01-24 17:02:47 +0300 |
commit | 823026b58211a4166de06ac243d978dcb9930271 (patch) | |
tree | 97b43039cb769f8bee410e8536f9f945f2825153 /odb/odb/traversal/class-template.cxx | |
parent | b56b9c6796d8853758f0f5967488260d61b788e2 (diff) |
Turn odb repository into muti-package repository
Also remove the autoconf/make-based build system.
Diffstat (limited to 'odb/odb/traversal/class-template.cxx')
-rw-r--r-- | odb/odb/traversal/class-template.cxx | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/odb/odb/traversal/class-template.cxx b/odb/odb/traversal/class-template.cxx new file mode 100644 index 0000000..b04b625 --- /dev/null +++ b/odb/odb/traversal/class-template.cxx @@ -0,0 +1,62 @@ +// file : odb/traversal/class-template.cxx +// license : GNU GPL v3; see accompanying LICENSE file + +#include <odb/traversal/class-template.hxx> + +namespace traversal +{ + // + // + void class_template:: + traverse (type& c) + { + inherits (c); + names (c); + } + + void class_template:: + inherits (type& c) + { + inherits (c, *this); + } + + void class_template:: + inherits (type& c, edge_dispatcher& d) + { + iterate_and_dispatch (c.inherits_begin (), c.inherits_end (), d); + } + + // + // + void class_instantiation:: + traverse (type& c) + { + instantiates (c); + inherits (c); + names (c); + } + + void class_instantiation:: + instantiates (type& c) + { + instantiates (c, *this); + } + + void class_instantiation:: + instantiates (type& c, edge_dispatcher& d) + { + d.dispatch (c.instantiates ()); + } + + void class_instantiation:: + inherits (type& c) + { + inherits (c, *this); + } + + void class_instantiation:: + inherits (type& c, edge_dispatcher& d) + { + iterate_and_dispatch (c.inherits_begin (), c.inherits_end (), d); + } +} |