// $Id$ #include "ast_template_module_inst.h" #include "ast_template_module.h" #include "ast_visitor.h" AST_Template_Module_Inst::AST_Template_Module_Inst ( UTL_ScopedName *n, AST_Template_Module *ref, FE_Utils::T_ARGLIST *template_args) : COMMON_Base (false, false), AST_Decl (AST_Decl::NT_module, n), AST_Field (AST_Decl::NT_module, ref, n), template_args_ (template_args) { } AST_Template_Module_Inst::~AST_Template_Module_Inst (void) { } AST_Template_Module * AST_Template_Module_Inst::ref (void) const { return AST_Template_Module::narrow_from_decl (this->field_type ()); } FE_Utils::T_ARGLIST * AST_Template_Module_Inst::template_args (void) const { return this->template_args_; } void AST_Template_Module_Inst::dump (ACE_OSTREAM_TYPE &) { // TODO } void AST_Template_Module_Inst::destroy (void) { this->template_args_->destroy (); delete this->template_args_; this->template_args_ = 0; this->AST_Field::destroy (); } int AST_Template_Module_Inst::ast_accept (ast_visitor *visitor) { return visitor->visit_template_module_inst (this); } IMPL_NARROW_FROM_DECL (AST_Template_Module_Inst)