Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / TAO_IDL / be / be_enum_val.cpp
blobd16c0aefb4a91acb9fa91224689f333508914106
2 //=============================================================================
3 /**
4 * @file be_enum_val.cpp
6 * Extension of class AST_EnumVal that provides additional means for C++
7 * mapping.
9 * @author Copyright 1994-1995 by Sun Microsystems
10 * @author Inc. and Aniruddha Gokhale
12 //=============================================================================
14 #include "be_enum_val.h"
15 #include "be_visitor.h"
17 be_enum_val::be_enum_val (ACE_CDR::ULong v,
18 UTL_ScopedName *n)
19 : COMMON_Base (),
20 AST_Decl (AST_Decl::NT_enum_val,
21 n),
22 AST_Constant (AST_Expression::EV_ulong,
23 AST_Decl::NT_enum_val,
24 new AST_Expression (v),
25 n),
26 AST_EnumVal (v,
27 n),
28 be_decl (AST_Decl::NT_enum_val,
33 int
34 be_enum_val::accept (be_visitor *visitor)
36 return visitor->visit_enum_val (this);
39 void
40 be_enum_val::destroy ()
42 this->AST_EnumVal::destroy ();
43 this->be_decl::destroy ();