Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / TAO_IDL / ast / ast_valuebox.cpp
blob9502a41a4ae892f08204fb5a1fcf037d67af551a
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 (void)
24 AST_Type *
25 AST_ValueBox::boxed_type (void) const
27 return this->pd_boxed_type;
30 void
31 AST_ValueBox::dump (ACE_OSTREAM_TYPE &o)
34 this->dump_i (o, "valuetype ");
36 this->local_name ()->dump (o);
37 this->dump_i (o, " ");
38 this->pd_boxed_type->dump (o);
41 int
42 AST_ValueBox::ast_accept (ast_visitor *visitor)
44 return visitor->visit_valuebox (this);
47 void
48 AST_ValueBox::destroy (void)
50 this->AST_ConcreteType::destroy ();
53 IMPL_NARROW_FROM_DECL(AST_ValueBox)