Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / TAO_IDL / include / ast_uses.h
blob10115d09a7734e08ee2f704e9bfd1ec32522244c
1 // -*- C++ -*-
2 #ifndef AST_USES_H
3 #define AST_USES_H
5 #include "ast_field.h"
7 class TAO_IDL_FE_Export AST_Uses : public virtual AST_Field
9 public:
10 AST_Uses (UTL_ScopedName *n,
11 AST_Type *uses_type,
12 bool is_multiple);
14 virtual ~AST_Uses (void);
16 // Data Accessors.
17 AST_Type *uses_type (void) const;
18 bool is_multiple (void) const;
20 // Narrowing.
21 DEF_NARROW_FROM_DECL(AST_Uses);
23 // AST Dumping.
24 virtual void dump (ACE_OSTREAM_TYPE &o);
26 // Visiting.
27 virtual int ast_accept (ast_visitor *visitor);
29 // Cleanup.
30 virtual void destroy (void);
32 static AST_Decl::NodeType const NT;
34 private:
35 bool is_multiple_;
38 #endif // AST_USES_H