Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / TAO_IDL / ast / ast_valuebox.cpp
blob15c3a0594353a46732171cdbcc23ce10a0686a6c
1 #include "ast_valuebox.h"
2 #include "ast_visitor.h"
3 #include "utl_identifier.h"
5 AST_Decl::NodeType const
6 AST_ValueBox::NT = AST_Decl::NT_valuebox;
8 AST_ValueBox::AST_ValueBox (UTL_ScopedName *n,
9 AST_Type *boxed_type)
10 : COMMON_Base (),
11 AST_Decl (AST_Decl::NT_valuebox,
12 n, true),
13 AST_Type (AST_Decl::NT_valuebox,
14 n),
15 AST_ConcreteType (AST_Decl::NT_valuebox, n),
16 pd_boxed_type (boxed_type)
20 AST_ValueBox::~AST_ValueBox ()
24 AST_Type *
25 AST_ValueBox::boxed_type () const
27 return this->pd_boxed_type;
30 void
31 AST_ValueBox::dump (ACE_OSTREAM_TYPE &o)
33 this->dump_i (o, "valuetype ");
35 this->local_name ()->dump (o);
36 this->dump_i (o, " ");
37 this->pd_boxed_type->dump (o);
40 int
41 AST_ValueBox::ast_accept (ast_visitor *visitor)
43 return visitor->visit_valuebox (this);
46 void
47 AST_ValueBox::destroy ()
49 this->AST_ConcreteType::destroy ();