diff options
Diffstat (limited to 'odb/odb/semantics/template.cxx')
-rw-r--r-- | odb/odb/semantics/template.cxx | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/odb/odb/semantics/template.cxx b/odb/odb/semantics/template.cxx new file mode 100644 index 0000000..f492be0 --- /dev/null +++ b/odb/odb/semantics/template.cxx @@ -0,0 +1,88 @@ +// file : odb/semantics/template.cxx +// license : GNU GPL v3; see accompanying LICENSE file + +#include <libcutl/compiler/type-info.hxx> +#include <odb/semantics/template.hxx> + +namespace semantics +{ + template_:: + template_ () + { + } + + instantiates:: + instantiates () + { + } + + instantiation:: + instantiation () + { + } + + type_template:: + type_template () + { + } + + type_instantiation:: + type_instantiation () + { + } + + // type info + // + namespace + { + struct init + { + init () + { + using compiler::type_info; + + // template_ + // + { + type_info ti (typeid (template_)); + ti.add_base (typeid (nameable)); + insert (ti); + } + + // instantiates + // + { + type_info ti (typeid (instantiates)); + ti.add_base (typeid (edge)); + insert (ti); + } + + // instantiation + // + { + type_info ti (typeid (instantiation)); + ti.add_base (typeid (node)); + insert (ti); + } + + // type_template + // + { + type_info ti (typeid (type_template)); + ti.add_base (typeid (template_)); + insert (ti); + } + + // type_instantiation + // + { + type_info ti (typeid (type_instantiation)); + ti.add_base (typeid (type)); + ti.add_base (typeid (instantiation)); + insert (ti); + } + + } + } init_; + } +} |