Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / TAO_IDL / be_include / be_uses.h
blob873b0c57f36903057e977518c33765d833f1c643
1 // -*- C++ -*-
2 #ifndef BE_USES_H
3 #define BE_USES_H
5 #include "ast_uses.h"
7 #include "be_field.h"
9 class be_interface;
10 class be_visitor;
12 class be_uses : public virtual AST_Uses,
13 public virtual be_field
15 public:
16 be_uses (UTL_ScopedName *n,
17 AST_Type *uses_type,
18 bool is_multiple);
20 virtual ~be_uses ();
22 // Non-virtual override of frontend method.
23 be_type *uses_type () const;
25 // Visiting.
26 virtual int accept (be_visitor *visitor);
28 // Cleanup.
29 virtual void destroy ();
31 void original_uses (be_uses *original_uses);
32 // Sets the original uses from which this one was created,
33 // applies only to implied IDL.
35 be_uses *original_uses ();
36 // Returns the original uses from which this one was created,
37 // applies only to implied IDL
39 private:
40 be_uses *original_uses_;
43 #endif // BE_USES_H