Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / TAO_IDL / be / be_enum_val.cpp
blob0970f1b2a6efb0e2fe22144445b985a420b6f3ff
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 (void)
42 this->AST_EnumVal::destroy ();
43 this->be_decl::destroy ();
46 IMPL_NARROW_FROM_DECL (be_enum_val)