|
xorp
|
A node for a binary operation. More...
#include <node.hh>
Public Member Functions | |
| NodeBin (BinOper *op, Node *left, Node *right, unsigned line) | |
| Caller must not delete / modify pointers. | |
| DEFINE_VISITABLE () | |
| const BinOper & | op () const |
| Node & | left () const |
| Node & | right () const |
Private Attributes | |
| BinOper * | _op |
| Node * | _left |
| Node * | _right |
A node for a binary operation.
The node will thus have two children. It owns both of them.
Caller must not delete / modify pointers.
| op | binary operation of node. |
| left | first argument of operation. |
| right | second argument of operation. |
| line | line where node was created. |
| Node& NodeBin::left | ( | ) | const [inline] |
| const BinOper& NodeBin::op | ( | ) | const [inline] |
| Node& NodeBin::right | ( | ) | const [inline] |