Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / TAO_IDL / be / be_provides.cpp
blob8d89b138c4f1f039cc5c08387ae391b8dca8f920
1 #include "be_provides.h"
2 #include "be_interface.h"
3 #include "be_operation.h"
4 #include "be_attribute.h"
5 #include "be_visitor.h"
6 #include "be_helper.h"
7 #include "be_extern.h"
9 #include "be_visitor_operation.h"
10 #include "be_visitor_attribute.h"
11 #include "be_visitor_context.h"
13 #include "utl_identifier.h"
15 #include "nr_extern.h"
17 be_provides::be_provides (UTL_ScopedName *n,
18 AST_Type *provides_type)
19 : COMMON_Base (false,
20 false),
21 AST_Decl (AST_Decl::NT_provides,
22 n),
23 AST_Field (AST_Decl::NT_provides,
24 provides_type,
25 n),
26 AST_Provides (n,
27 provides_type),
28 be_decl (AST_Decl::NT_provides,
29 n),
30 be_field (provides_type,
35 be_provides::~be_provides ()
39 be_type *
40 be_provides::provides_type () const
42 return
43 dynamic_cast<be_type*> (
44 this->AST_Provides::provides_type ());
47 int
48 be_provides::accept (be_visitor *visitor)
50 return visitor->visit_provides (this);
53 void
54 be_provides::destroy ()
56 this->AST_Provides::destroy ();
57 this->be_field::destroy ();