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
62
|
// $Id$
#include "ast_valuebox.h"
#include "ast_visitor.h"
#include "utl_identifier.h"
ACE_RCSID (ast,
ast_valuebox,
"ast_valuebox.cpp,v 1.0 Exp")
AST_ValueBox::AST_ValueBox (void)
: COMMON_Base (),
AST_Decl (),
AST_Type (),
AST_ConcreteType ()
{
}
AST_ValueBox::AST_ValueBox (UTL_ScopedName *n,
AST_Type *boxed_type)
: COMMON_Base (),
AST_Decl (AST_Decl::NT_valuebox,
n, true),
AST_Type (AST_Decl::NT_valuebox,
n),
AST_ConcreteType (AST_Decl::NT_valuebox, n),
pd_boxed_type (boxed_type)
{
}
AST_ValueBox::~AST_ValueBox (void)
{
}
AST_Type *
AST_ValueBox::boxed_type (void) const
{
return this->pd_boxed_type;
}
void
AST_ValueBox::dump (ACE_OSTREAM_TYPE &o)
{
this->dump_i (o, "valuetype ");
this->local_name ()->dump (o);
this->dump_i (o, " ");
this->pd_boxed_type->dump (o);
}
int
AST_ValueBox::ast_accept (ast_visitor *visitor)
{
return visitor->visit_valuebox (this);
}
// Narrowing.
IMPL_NARROW_METHODS1(AST_ValueBox, AST_ConcreteType)
IMPL_NARROW_FROM_DECL(AST_ValueBox)
|