2 //=============================================================================
6 * Extension of class AST_Operation that provides additional means for C++
9 * @author Copyright 1994-1995 by Sun Microsystems
10 * @author Inc. and Aniruddha Gokhale
12 //=============================================================================
14 #ifndef BE_OPERATION_H
15 #define BE_OPERATION_H
19 #include "be_codegen.h"
20 #include "ast_operation.h"
25 //class be_operation_strategy;
27 class be_operation
: public virtual AST_Operation
,
28 public virtual be_scope
,
29 public virtual be_decl
32 be_operation (AST_Type
*rt
,
33 AST_Operation::Flags fl
,
41 virtual void destroy (void);
44 virtual int accept (be_visitor
*visitor
);
46 /// Add an argument to the scope.
47 virtual AST_Argument
*be_add_argument (AST_Argument
*arg
);
49 /// Insert an exception at the head of the list.
50 int be_insert_exception (AST_Exception
*ex
);
52 bool is_sendc_ami (void) const;
53 void is_sendc_ami (bool val
);
55 bool is_excep_ami (void) const;
56 void is_excep_ami (bool val
);
58 bool is_attr_op (void) const;
59 void is_attr_op (bool val
);
62 DEF_NARROW_FROM_DECL (be_operation
);
63 DEF_NARROW_FROM_SCOPE (be_operation
);