diff options
Diffstat (limited to 'ACE/TAO/TAO_IDL/include/ast_valuebox.h')
-rw-r--r-- | ACE/TAO/TAO_IDL/include/ast_valuebox.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/ACE/TAO/TAO_IDL/include/ast_valuebox.h b/ACE/TAO/TAO_IDL/include/ast_valuebox.h new file mode 100644 index 00000000000..7cdfc40d51c --- /dev/null +++ b/ACE/TAO/TAO_IDL/include/ast_valuebox.h @@ -0,0 +1,41 @@ +// This may look like C, but it's really -*- C++ -*- +// $Id$ + +#ifndef _AST_VALUEBOX_AST_VALUEBOX_HH +#define _AST_VALUEBOX_AST_VALUEBOX_HH + +#include "ast_concrete_type.h" + +class TAO_IDL_FE_Export AST_ValueBox : public virtual AST_ConcreteType +{ +public: + + // Constructor(s) and destructor. + AST_ValueBox (void); + + AST_ValueBox (UTL_ScopedName *n, + AST_Type *boxed_type); + + virtual ~AST_ValueBox (void); + + // Data Accessors. + AST_Type *boxed_type (void) const; + + // Narrowing. + + DEF_NARROW_FROM_DECL(AST_ValueBox); + + // AST Dumping. + virtual void dump (ACE_OSTREAM_TYPE &o); + + // Visiting. + virtual int ast_accept (ast_visitor *visitor); + + // Cleanup. + virtual void destroy (void); + +protected: + AST_Type *pd_boxed_type; +}; + +#endif // _AST_VALUEBOX_AST_VALUEBOX_HH |