Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / TAO_IDL / be / be_constant.cpp
blobe1ea76357cf64220b0c98a7253cb5ffc20cbf101
2 //=============================================================================
3 /**
4 * @file be_constant.cpp
6 * Extension of class AST_Constant 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_constant.h"
15 #include "be_visitor.h"
16 #include "utl_scope.h"
17 #include "nr_extern.h"
19 be_constant::be_constant (AST_Expression::ExprType et,
20 AST_Expression *v,
21 UTL_ScopedName *n)
22 : COMMON_Base (),
23 AST_Decl (AST_Decl::NT_const, n),
24 AST_Constant (et, v, n),
25 be_decl (AST_Decl::NT_const, n)
29 int
30 be_constant::accept (be_visitor *visitor)
32 return visitor->visit_constant (this);
35 void
36 be_constant::destroy (void)
38 this->be_decl::destroy ();
39 this->AST_Constant::destroy ();
44 IMPL_NARROW_FROM_DECL (be_constant)