Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / TAO_IDL / be / be_emits.cpp
blob6e973c144b7240e68b356ea2fe914525deb2fb20
1 #include "be_emits.h"
2 #include "be_eventtype.h"
3 #include "be_visitor.h"
5 be_emits::be_emits (UTL_ScopedName *n,
6 AST_Type *emits_type)
7 : COMMON_Base (false,
8 false),
9 AST_Decl (AST_Decl::NT_emits,
10 n),
11 AST_Field (AST_Decl::NT_emits,
12 emits_type,
13 n),
14 AST_Emits (n,
15 emits_type),
16 be_decl (AST_Decl::NT_emits,
17 n),
18 be_field (emits_type,
23 be_emits::~be_emits ()
27 be_eventtype *
28 be_emits::emits_type () const
30 return
31 dynamic_cast<be_eventtype*> (
32 this->AST_Emits::emits_type ());
35 int
36 be_emits::accept (be_visitor *visitor)
38 return visitor->visit_emits (this);
41 void
42 be_emits::destroy ()
44 this->AST_Emits::destroy ();
45 this->be_field::destroy ();