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

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


#include "ast_visitor_context.h"

ast_visitor_context::ast_visitor_context ()
  : template_params_ (nullptr),
    template_args_ (nullptr)
{
}

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 ()
{
}

FE_Utils::T_PARAMLIST_INFO *
ast_visitor_context::template_params () 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 const *
ast_visitor_context::template_args () const
{
  return this->template_args_;
}

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