Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / TAO_IDL / be / be_consumes.cpp
blobababb8e4673e4583b93860fa9c46d708ce16a88b
1 #include "be_consumes.h"
2 #include "be_eventtype.h"
3 #include "be_visitor.h"
5 be_consumes::be_consumes (UTL_ScopedName *n,
6 AST_Type *consumes_type)
7 : COMMON_Base (false,
8 false),
9 AST_Decl (AST_Decl::NT_consumes,
10 n),
11 AST_Field (AST_Decl::NT_consumes,
12 consumes_type,
13 n),
14 AST_Consumes (n,
15 consumes_type),
16 be_decl (AST_Decl::NT_consumes,
17 n),
18 be_field (consumes_type,
23 be_consumes::~be_consumes (void)
27 be_eventtype *
28 be_consumes::consumes_type (void) const
30 return
31 dynamic_cast<be_eventtype*> (
32 this->AST_Consumes::consumes_type ());
35 int
36 be_consumes::accept (be_visitor *visitor)
38 return visitor->visit_consumes (this);
41 void
42 be_consumes::destroy (void)
44 this->AST_Consumes::destroy ();
45 this->be_field::destroy ();
48 IMPL_NARROW_FROM_DECL (be_consumes)