summaryrefslogtreecommitdiff
path: root/modules/TAO/TAO_IDL/include/ast_template_module_inst.h
blob: 32ac5293f47deacf2cc769596dfad10a653fa2d2 (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
// This may look like C, but it's really -*- C++ -*-
// $Id$

#ifndef AST_TEMPLATE_MODULE_INST_H
#define AST_TEMPLATE_MODULE_INST_H

#include "ast_field.h"
#include "fe_utils.h"

class AST_Template_Module;

class TAO_IDL_FE_Export AST_Template_Module_Inst
  : public virtual AST_Field
{
public:
  AST_Template_Module_Inst (UTL_ScopedName *n,
                            AST_Template_Module *ref,
                            FE_Utils::T_ARGLIST *template_args);

  virtual ~AST_Template_Module_Inst (void);
  
  AST_Template_Module *ref (void) const;

  FE_Utils::T_ARGLIST const *
  template_args (void) const;
  
  // Narrowing.
  DEF_NARROW_FROM_DECL (AST_Template_Module_Inst);

  // AST Dumping.
  virtual void dump (ACE_OSTREAM_TYPE &o);
  
  // Cleanup function.
  virtual void destroy (void);

  // Visiting.
  virtual int ast_accept (ast_visitor *visitor);
  
private:
  FE_Utils::T_ARGLIST * template_args_;
};

#endif           // AST_TEMPLATE_MODULE_INST_H