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

Public Member Functions | |
| virtual | ~expression_char_pretty () |
| expression_char_pretty (const location &locn, unsigned char value, translator_pretty *cntxt) | |
Protected Member Functions | |
| void | traversal (int pprec) |
| expression::pointer | optimize () const |
Private Member Functions | |
| expression_char_pretty () | |
| expression_char_pretty (const expression_char_pretty &) | |
| expression_char_pretty & | operator= (const expression_char_pretty &) |
Private Attributes | |
| translator_pretty & | pretty |
Definition at line 32 of file pretty.h.
| virtual expression_char_pretty::~expression_char_pretty | ( | ) | [virtual] |
The destructor.
| expression_char_pretty::expression_char_pretty | ( | const location & | locn, | |
| unsigned char | value, | |||
| translator_pretty * | cntxt | |||
| ) |
The constructor.
| expression_char_pretty::expression_char_pretty | ( | ) | [private] |
The default constructor. Do not use.
| expression_char_pretty::expression_char_pretty | ( | const expression_char_pretty & | ) | [private] |
The copy constructor. Do not use.
| void expression_char_pretty::traversal | ( | int | pprec | ) | [protected, virtual] |
The traversal method may be used to traverse each of the declaractions in the list.
| pprec | The precedence of the parent expression node. |
Implements expression.
| expression::pointer expression_char_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_char_pretty& expression_char_pretty::operator= | ( | const expression_char_pretty & | ) | [private] |
The assignment operator. Do not use.
translator_pretty& expression_char_pretty::pretty [private] |
1.5.1