Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / TAO_IDL / be / be_component_fwd.cpp
blob7cc6a8f441be77aa354c523db80fc016cbc00ad0
2 //=============================================================================
3 /**
4 * @file be_component_fwd.cpp
6 * Extension of class AST_ComponentFwd that provides additional means for C++
7 * mapping of a forward declared component.
9 * @author Jeff Parsons
11 //=============================================================================
13 #include "be_component_fwd.h"
14 #include "be_visitor.h"
15 #include "global_extern.h"
16 #include "utl_err.h"
18 be_component_fwd::be_component_fwd (AST_Interface *dummy,
19 UTL_ScopedName *n)
20 : COMMON_Base (),
21 AST_Decl (AST_Decl::NT_component_fwd,
22 n),
23 AST_Type (AST_Decl::NT_component_fwd,
24 n),
25 AST_InterfaceFwd (dummy,
26 n),
27 AST_ComponentFwd (dummy,
28 n),
29 be_decl (AST_Decl::NT_component_fwd,
30 n),
31 be_type (AST_Decl::NT_component_fwd,
32 n),
33 be_interface_fwd (dummy,
36 this->size_type (AST_Type::VARIABLE);
39 be_component_fwd::~be_component_fwd (void)
43 void
44 be_component_fwd::destroy (void)
46 this->AST_ComponentFwd::destroy ();
49 int
50 be_component_fwd::accept (be_visitor *visitor)
52 return (idl_global->ignore_idl3 ()
53 ? 0
54 : visitor->visit_component_fwd (this));
59 IMPL_NARROW_FROM_DECL (be_component_fwd)