diff options
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); + } +} |