Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / TAO_IDL / ast / ast_template_module_inst.cpp
blobcc973cd8e82502a5cfa54d277609b575aef98b5a
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 ()
27 AST_Template_Module *
28 AST_Template_Module_Inst::ref () const
30 return dynamic_cast<AST_Template_Module*> (this->field_type ());
33 FE_Utils::T_ARGLIST const *
34 AST_Template_Module_Inst::template_args () 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 ()
48 this->template_args_->destroy ();
49 delete this->template_args_;
50 this->template_args_ = nullptr;
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);