Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / TAO_IDL / ast / ast_template_module_inst.cpp
blob3fc794178ecf96f0b6ec9f54f95102877f0ad52e
1 #include "ast_template_module_inst.h"
2 #include "ast_template_module.h"
3 #include "ast_visitor.h"
5 AST_Decl::NodeType const
6 AST_Template_Module_Inst::NT = AST_Decl::NT_module;
8 AST_Template_Module_Inst::AST_Template_Module_Inst (
9 UTL_ScopedName *n,
10 AST_Template_Module *ref,
11 FE_Utils::T_ARGLIST *template_args)
12 : COMMON_Base (false,
13 false),
14 AST_Decl (AST_Decl::NT_module,
15 n),
16 AST_Field (AST_Decl::NT_module,
17 ref,
18 n),
19 template_args_ (template_args)
23 AST_Template_Module_Inst::~AST_Template_Module_Inst (void)
27 AST_Template_Module *
28 AST_Template_Module_Inst::ref (void) const
30 return dynamic_cast<AST_Template_Module*> (this->field_type ());
33 FE_Utils::T_ARGLIST const *
34 AST_Template_Module_Inst::template_args (void) const
36 return this->template_args_;
39 void
40 AST_Template_Module_Inst::dump (ACE_OSTREAM_TYPE &)
42 // TODO
45 void
46 AST_Template_Module_Inst::destroy (void)
48 this->template_args_->destroy ();
49 delete this->template_args_;
50 this->template_args_ = 0;
52 this->AST_Field::destroy ();
55 int
56 AST_Template_Module_Inst::ast_accept (ast_visitor *visitor)
58 return visitor->visit_template_module_inst (this);
61 IMPL_NARROW_FROM_DECL (AST_Template_Module_Inst)