#include <pt-binop.h>
Inherits tree_expression.
Inherited by tree_boolean_expression, and tree_compound_binary_expression.
Public Member Functions | |
tree_binary_expression (int l=-1, int c=-1, octave_value::binary_op t=octave_value::unknown_binary_op) | |
tree_binary_expression (tree_expression *a, tree_expression *b, int l=-1, int c=-1, octave_value::binary_op t=octave_value::unknown_binary_op) | |
~tree_binary_expression (void) | |
bool | has_magic_end (void) const |
bool | is_binary_expression (void) const |
bool | rvalue_ok (void) const |
octave_value | rvalue1 (int nargout=1) |
octave_value_list | rvalue (int nargout) |
std::string | oper (void) const |
octave_value::binary_op | op_type (void) const |
tree_expression * | lhs (void) |
tree_expression * | rhs (void) |
tree_expression * | dup (symbol_table::scope_id scope, symbol_table::context_id context) const |
void | accept (tree_walker &tw) |
Protected Attributes | |
tree_expression * | op_lhs |
tree_expression * | op_rhs |
tree_binary_expression::tree_binary_expression | ( | int | l = -1 , |
|
int | c = -1 , |
|||
octave_value::binary_op | t = octave_value::unknown_binary_op | |||
) | [inline] |
tree_binary_expression::tree_binary_expression | ( | tree_expression * | a, | |
tree_expression * | b, | |||
int | l = -1 , |
|||
int | c = -1 , |
|||
octave_value::binary_op | t = octave_value::unknown_binary_op | |||
) | [inline] |
tree_binary_expression::~tree_binary_expression | ( | void | ) | [inline] |
void tree_binary_expression::accept | ( | tree_walker & | tw | ) | [virtual] |
Implements tree.
tree_expression * tree_binary_expression::dup | ( | symbol_table::scope_id | scope, | |
symbol_table::context_id | context | |||
) | const [virtual] |
bool tree_binary_expression::has_magic_end | ( | void | ) | const [inline, virtual] |
Implements tree_expression.
bool tree_binary_expression::is_binary_expression | ( | void | ) | const [inline, virtual] |
Reimplemented from tree_expression.
tree_expression* tree_binary_expression::lhs | ( | void | ) | [inline] |
octave_value::binary_op tree_binary_expression::op_type | ( | void | ) | const [inline] |
Reimplemented in tree_boolean_expression.
std::string tree_binary_expression::oper | ( | void | ) | const [virtual] |
tree_expression* tree_binary_expression::rhs | ( | void | ) | [inline] |
octave_value_list tree_binary_expression::rvalue | ( | int | nargout | ) | [virtual] |
octave_value tree_binary_expression::rvalue1 | ( | int | nargout = 1 |
) | [virtual] |
Reimplemented from tree_expression.
Reimplemented in tree_boolean_expression, and tree_compound_binary_expression.
bool tree_binary_expression::rvalue_ok | ( | void | ) | const [inline, virtual] |
tree_expression* tree_binary_expression::op_lhs [protected] |
tree_expression* tree_binary_expression::op_rhs [protected] |