UnaryExpr Class ReferenceAn expression with a single argument.
More...
#include <UnaryExpr.h>
Inheritance diagram for UnaryExpr:
[legend]List of all members.
Detailed Description
An expression with a single argument.
Polaris Expression - See also:
- Expression/UnaryExpr.h
Expression/UnaryExpr.h
Expression/Expression.cc
A UnaryExpr is a expression with a single argument. This argument is accessed through the expr() methods. A UnaryExpr can be one of several kinds of expressions. The most common of these are are U_MINUS_OP (-) and NOT_OP (.NOT.).
Definition at line 33 of file UnaryExpr.h.
Constructor & Destructor Documentation
| UnaryExpr::UnaryExpr |
( |
const UnaryExpr & |
e |
) |
[inline] |
|
| UnaryExpr::UnaryExpr |
( |
OP_TYPE |
o, |
|
|
const Type & |
e |
|
) |
[inline, protected] |
|
|
|
< nothing to do
Definition at line 93 of file UnaryExpr.h.
References e. |
Member Function Documentation
| const Expression & UnaryExpr::expr_guarded |
( |
|
) |
const [virtual] |
|
| Expression & UnaryExpr::expr_guarded |
( |
|
) |
[virtual] |
|
| Boolean UnaryExpr::expr_valid |
( |
|
) |
const [virtual] |
|
|
|
Relinquish my ownership of my argument and return it.
My argument will now be marked as invalid.
Reimplemented from Expression.
Definition at line 7033 of file Expression.cc.
References _grab_expr(). |
| Boolean UnaryExpr::args_are_non_null |
( |
|
) |
const [virtual] |
|
|
|
Return true if the unary or binary expression doesn't have any non-NULL subexpression arguments.
Reimplemented from Expression.
Definition at line 7039 of file Expression.cc.
References _expr_valid(). |
|
|
Return a reference to list of all expression arguments of myself.
... List of no arguments
Reimplemented from Expression.
Definition at line 7051 of file Expression.cc. |
| int UnaryExpr::structures_OK |
( |
|
) |
const [virtual] |
|
| virtual void UnaryExpr::convert |
( |
BinRep & |
exprSet, |
|
|
Symtab & |
symtab |
|
) |
[virtual] |
|
|
|
Read in the values of my fields and my subexpressions from the given BinRep object.
Convert(BinRep) expects the BinRep to be referencing an expression set of the same type as the expression. On return, all data from the expression set has been inserted into the appropriate fields in the expression object. NOTE that this converts the expression to an intermediate form which may contain TableExpr objects.
Implements Expression.
Reimplemented in ReturnStarExpr. |
| virtual void UnaryExpr::print_debug |
( |
ostream & |
o, |
|
|
Boolean |
debug |
|
) |
const [virtual] |
|
| int UnaryExpr::exchange_expr |
( |
VDL & |
vdl |
) |
[virtual] |
|
| const Expression & UnaryExpr::_expr_guarded |
( |
|
) |
const [inline, protected] |
|
| Expression & UnaryExpr::_expr_guarded |
( |
|
) |
[inline, protected] |
|
| void UnaryExpr::_expr |
( |
Expression * |
|
) |
[inline, protected] |
|
| Boolean UnaryExpr::_expr_valid |
( |
|
) |
const [inline, protected] |
|
| Expression * UnaryExpr::_grab_expr |
( |
|
) |
[inline, protected] |
|
| Expression * UnaryExpr::_fold_top |
( |
void |
|
) |
[protected, virtual] |
|
|
|
... Do nothing
Reimplemented from Expression.
Definition at line 9649 of file Expression.cc.
References _expr_can_contain_omega(), _expr_guarded(), _expr_valid(), _grab_expr(), _simplify_options, NOT_OP, OMEGA_OP, Expression::op(), PAREN_OP, U_MINUS_OP, and U_PLUS_OP. |
| void UnaryExpr::relink_eptrs |
( |
ProgramUnit & |
p |
) |
[protected, virtual] |
|
| void UnaryExpr::_backup_aux |
( |
|
) |
[protected, virtual] |
|
Friends And Related Function Documentation
The documentation for this class was generated from the following files:
|