#include <pretty.h>
Inheritance diagram for expression_function_call_pretty:

Public Member Functions | |
| virtual | ~expression_function_call_pretty () |
| expression_function_call_pretty (expression_list *args, translator_pretty *cntxt) | |
Protected Member Functions | |
| void | pre_order_traversal (int pprec) |
| void | comma_order_traversal (int pprec, int argnum) |
| void | post_order_traversal (int pprec, int argnum) |
| expression::pointer | optimize () const |
Private Member Functions | |
| expression_function_call_pretty () | |
| expression_function_call_pretty (const expression_function_call_pretty &) | |
| expression_function_call_pretty & | operator= (const expression_function_call_pretty &) |
Private Attributes | |
| translator_pretty & | pretty |
Definition at line 31 of file pretty.h.
| virtual expression_function_call_pretty::~expression_function_call_pretty | ( | ) | [virtual] |
The destructor.
| expression_function_call_pretty::expression_function_call_pretty | ( | expression_list * | args, | |
| translator_pretty * | cntxt | |||
| ) |
The constructor.
| expression_function_call_pretty::expression_function_call_pretty | ( | ) | [private] |
The default constructor. Do not use.
| expression_function_call_pretty::expression_function_call_pretty | ( | const expression_function_call_pretty & | ) | [private] |
The copy constructor. Do not use.
| void expression_function_call_pretty::pre_order_traversal | ( | int | pprec | ) | [protected, virtual] |
The pre_order_traversal method is called by the traversal method just before any of the child expressions are traversed.
| pprec | parent expression precedence |
Reimplemented from expression_function_call.
| void expression_function_call_pretty::comma_order_traversal | ( | int | pprec, | |
| int | argnum | |||
| ) | [protected, virtual] |
The comma_order_traversal method is called by the traversal method just after each of the child expressions has been traversed, except the last one.
| pprec | parent expression precedence | |
| argnum | the number of the argument (0 based, 0 is the function name, usually) |
Reimplemented from expression_function_call.
| void expression_function_call_pretty::post_order_traversal | ( | int | pprec, | |
| int | argnum | |||
| ) | [protected, virtual] |
The post_order_traversal method is called by the traversal method just after the last child expression has been traversed.
| pprec | parent expression precedence | |
| argnum | the number of the argument (can be zero if only one child) usually) |
Reimplemented from expression_function_call.
| expression::pointer expression_function_call_pretty::optimize | ( | ) | const [protected, virtual] |
The optimize method may be used to evaluate constant expressions, or substitute more efficient expressions.
This is intended to be called by the translator:: expression_statement method, or similar, where the expression is in its final form, and will get no deeper. In other words, when all available information has been provided.
There is no default implementation, even though most optimize implementations return self(), because this gives the compiler no opportunity to remind the authors of new classes that they have forgotten something.
Implements expression.
| expression_function_call_pretty& expression_function_call_pretty::operator= | ( | const expression_function_call_pretty & | ) | [private] |
The assignment operator. Do not use.
1.5.1