#include <compile.h>
Inheritance diagram for expression_logical_not_compile:

Public Member Functions | |
| virtual | ~expression_logical_not_compile () |
| expression_logical_not_compile (const expression::pointer &operand, translator_compile *cntxt) | |
Protected Member Functions | |
| void | logical_traversal (int pprec, label::pointer &true_branch, label::pointer &false_branch, bool fall_through_preference) |
| expression::pointer | optimize () const |
Private Member Functions | |
| expression_logical_not_compile () | |
| expression_logical_not_compile (const expression_logical_not_compile &) | |
| expression_logical_not_compile & | operator= (const expression_logical_not_compile &) |
Private Attributes | |
| translator_compile & | code |
Definition at line 32 of file compile.h.
| virtual expression_logical_not_compile::~expression_logical_not_compile | ( | ) | [virtual] |
The destructor.
| expression_logical_not_compile::expression_logical_not_compile | ( | const expression::pointer & | operand, | |
| translator_compile * | cntxt | |||
| ) |
The constructor.
| expression_logical_not_compile::expression_logical_not_compile | ( | ) | [private] |
The default constructor.
| expression_logical_not_compile::expression_logical_not_compile | ( | const expression_logical_not_compile & | ) | [private] |
The copy constructor.
| void expression_logical_not_compile::logical_traversal | ( | int | pprec, | |
| label::pointer & | true_branch, | |||
| label::pointer & | false_branch, | |||
| bool | fall_through_preference | |||
| ) | [protected, virtual] |
Reimplemented from expression_logical_not.
| expression::pointer expression_logical_not_compile::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_logical_not_compile& expression_logical_not_compile::operator= | ( | const expression_logical_not_compile & | ) | [private] |
The assignment operator.
1.5.1