Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / TAO_IDL / be / be_module.cpp
blob00c679e588d622ed57b5d34807b1bc1c482d2435
1 //=============================================================================
2 /**
3 * @file be_module.cpp
5 * Extension of class AST_Module that provides additional means for C++
6 * mapping of a module
8 * @author Copyright 1994-1995 by Sun Microsystems
9 * @author Inc. and Aniruddha Gokhale
11 //=============================================================================
13 #include "be_module.h"
14 #include "be_visitor.h"
16 be_module::be_module (UTL_ScopedName *n, AST_Module *previous)
17 : COMMON_Base (),
18 AST_Decl (AST_Decl::NT_module, n),
19 UTL_Scope (AST_Decl::NT_module),
20 AST_Module (n, previous),
21 be_scope (AST_Decl::NT_module),
22 be_decl (AST_Decl::NT_module, n)
26 void
27 be_module::destroy (void)
29 // Call the destroy methods of our base classes.
30 this->be_scope::destroy ();
31 this->be_decl::destroy ();
32 this->AST_Module::destroy ();
35 int
36 be_module::accept (be_visitor *visitor)
38 return visitor->visit_module (this);
41 IMPL_NARROW_FROM_DECL (be_module)
42 IMPL_NARROW_FROM_SCOPE (be_module)