Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / TAO_IDL / be / be_union_fwd.cpp
blob0980994c2ee74777edc211a299352c4a0fc0667a
2 //=============================================================================
3 /**
4 * @file be_union_fwd.cpp
6 * Extension of class AST_UnionFwd that provides additional means for C++
7 * mapping of a union.
9 * @author Jeff Parsons
11 //=============================================================================
13 #include "be_union_fwd.h"
14 #include "be_visitor.h"
15 #include "ast_union.h"
17 be_union_fwd::be_union_fwd (AST_Union *dummy,
18 UTL_ScopedName *n)
19 : COMMON_Base (),
20 AST_Decl (AST_Decl::NT_union_fwd,
21 n),
22 AST_Type (AST_Decl::NT_union_fwd,
23 n),
24 AST_StructureFwd (dummy,
25 n),
26 AST_UnionFwd (dummy,
27 n),
28 be_decl (AST_Decl::NT_union_fwd,
29 n),
30 be_type (AST_Decl::NT_union_fwd,
31 n),
32 be_structure_fwd (dummy,
37 be_union_fwd::~be_union_fwd ()
41 void
42 be_union_fwd::destroy ()
44 this->be_structure_fwd::destroy ();
47 int
48 be_union_fwd::accept (be_visitor *visitor)
50 return visitor->visit_union_fwd (this);