#include <integer.h>
Inheritance diagram for expression_integer:

Public Member Functions | |
| virtual | ~expression_integer () |
| expression_integer (const rcstring &value) | |
| expression_integer (const rcstring &value, const location &locn) | |
| expression_integer (long value) | |
| expression_integer (long value, const location &locn) | |
| long | get_value () const |
Protected Member Functions | |
| type::pointer | get_type () const |
| bool | is_lvalue () const |
| int | get_precedence () const |
| side_effect_t | has_side_effect () const |
| bool | is_constant () const |
| long | get_integer_value () const |
Private Member Functions | |
| expression_integer () | |
| expression_integer (const expression_integer &) | |
| expression_integer & | operator= (const expression_integer &) |
Private Attributes | |
| long | value |
Definition at line 31 of file integer.h.
| virtual expression_integer::~expression_integer | ( | ) | [virtual] |
The destructor.
| expression_integer::expression_integer | ( | const rcstring & | value | ) |
The constructor.
| value | the content of the integer constant. |
The constructor.
| value | the content of the integer constant. | |
| locn | The source location of the constant |
| expression_integer::expression_integer | ( | long | value | ) |
The constructor.
| value | the content of the integer constant. |
| expression_integer::expression_integer | ( | long | value, | |
| const location & | locn | |||
| ) |
The constructor.
| value | the content of the integer constant. | |
| locn | the source location of the constant |
| expression_integer::expression_integer | ( | ) | [private] |
The default constructor. Do not use.
| expression_integer::expression_integer | ( | const expression_integer & | ) | [private] |
The copy constructor. Do not use.
| long expression_integer::get_value | ( | ) | const [inline] |
| type::pointer expression_integer::get_type | ( | ) | const [protected, virtual] |
The get_type method is used to get the type of this expression.
Implements expression.
Reimplemented in expression_integer_compile_enumerated.
| bool expression_integer::is_lvalue | ( | ) | const [protected, virtual] |
The is_lvalue method is used to determine whether or not this expression is suitable to appear on the left hand side of an assignment expression.
Implements expression.
| int expression_integer::get_precedence | ( | ) | const [protected, virtual] |
The get_precedence method is used to obtain the precedence of this expression node.
The highest precedence has the highest absolute value, the lowest precedence gets the lowest absolute value.
Implements expression.
| side_effect_t expression_integer::has_side_effect | ( | ) | const [protected, virtual] |
The has_side_effect method is used to determine if an expression has any effect. It is used by the parse to produce "statement with no effect" warnings.
Implements expression.
| bool expression_integer::is_constant | ( | ) | const [protected, virtual] |
The is_constant method may be used to determine whether this expression node is a constant, or this tree would evaluate to a constant.
The default implementation is conservative, and always returns false.
Reimplemented from expression.
| long expression_integer::get_integer_value | ( | ) | const [protected, virtual] |
The get_integer_value method is used to obtain the integer value of an expression node. It is an error, and the results are undefined (probably rm -rf or worse), if this is not a constant integer expression node.
Reimplemented from expression.
| expression_integer& expression_integer::operator= | ( | const expression_integer & | ) | [private] |
The assignment operator. Do not use.
long expression_integer::value [private] |
1.5.1