summaryrefslogtreecommitdiff
path: root/TAO_IDL/ast/ast_visitor_context.cpp
blob: 7c0f38665284577bf964e6edbd9dcb9ed87fe963 (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

//=============================================================================
/**
 *  @file    ast_visitor_context.cpp
 *
 *  $Id$
 *
 *   Maintains the context information for visitors
 *
 *
 *  @author Jeff Parsons & Aniruddha Gokhale
 */
//=============================================================================


#include "ast_visitor_context.h"

ast_visitor_context::ast_visitor_context (void)
  : template_params_ (0),
    template_args_ (0)
{
}

ast_visitor_context::ast_visitor_context (const ast_visitor_context &ctx)
  : template_params_ (ctx.template_params_),
    template_args_ (ctx.template_args_)
{
}

ast_visitor_context::~ast_visitor_context (void)
{
}

FE_Utils::T_PARAMLIST_INFO *
ast_visitor_context::template_params (void) const
{
  return this->template_params_;
}

void
ast_visitor_context::template_params (FE_Utils::T_PARAMLIST_INFO *params)
{
  this->template_params_ = params;
}

FE_Utils::T_ARGLIST *
ast_visitor_context::template_args (void) const
{
  return this->template_args_;
}

void
ast_visitor_context::template_args (FE_Utils::T_ARGLIST *args)
{
  this->template_args_ = args;
}