summaryrefslogtreecommitdiff
path: root/modules/TAO/TAO_IDL/ast/ast_template_module_inst.cpp
blob: aaaddee7fbc5545f07d0075a2fcf26d19cebd9ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// $Id$

#include "ast_template_module_inst.h"
#include "ast_template_module.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 const *
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 *)
{
  return 0;//visitor->visit_template_module_inst (this);
}

IMPL_NARROW_FROM_DECL (AST_Template_Module_Inst)