#include <sqr.h>
Inheritance diagram for expression_function_call_sqr:

Public Member Functions | |
| virtual | ~expression_function_call_sqr () |
| expression_function_call_sqr (expression_list *args, translator_compile *cntxt) | |
Protected Member Functions | |
| expression::pointer | optimize () const |
| type::pointer | get_type () const |
| void | post_order_traversal (int pprec, int argnum) |
| void | logical_traversal (int pprec, label::pointer &true_branch, label::pointer &false_branch, bool fall_through_preference) |
Private Member Functions | |
| expression_function_call_sqr () | |
| expression_function_call_sqr (const expression_function_call_sqr &) | |
| expression_function_call_sqr & | operator= (const expression_function_call_sqr &) |
Private Attributes | |
| translator_compile & | code |
Definition at line 32 of file sqr.h.
| virtual expression_function_call_sqr::~expression_function_call_sqr | ( | ) | [virtual] |
The destructor.
| expression_function_call_sqr::expression_function_call_sqr | ( | expression_list * | args, | |
| translator_compile * | cntxt | |||
| ) |
The constructor.
| expression_function_call_sqr::expression_function_call_sqr | ( | ) | [private] |
The default constructor. Do not use.
| expression_function_call_sqr::expression_function_call_sqr | ( | const expression_function_call_sqr & | ) | [private] |
The copy constructor. Do not use.
| expression::pointer expression_function_call_sqr::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.
| type::pointer expression_function_call_sqr::get_type | ( | ) | const [protected, virtual] |
The get_type method is used to get the type of this expression.
Reimplemented from expression_function_call.
| void expression_function_call_sqr::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.
| void expression_function_call_sqr::logical_traversal | ( | int | pprec, | |
| label::pointer & | true_branch, | |||
| label::pointer & | false_branch, | |||
| bool | fall_through_preference | |||
| ) | [protected] |
Reimplemented from expression_function_call.
| expression_function_call_sqr& expression_function_call_sqr::operator= | ( | const expression_function_call_sqr & | ) | [private] |
The assignment operator. Do not use.
1.5.1