#include "pt-binop.h"
Public Types | |
| enum | type { unknown , bool_and , bool_or } |
Public Member Functions | |
| tree_boolean_expression (int l=-1, int c=-1, type t=unknown) | |
| tree_boolean_expression (tree_expression *a, tree_expression *b, int l=-1, int c=-1, type t=unknown) | |
| ~tree_boolean_expression ()=default | |
| void | accept (tree_walker &tw) |
| tree_expression * | dup (symbol_scope &scope) const |
| octave_value | evaluate (tree_evaluator &, int nargout=1) |
| octave_value_list | evaluate_n (tree_evaluator &tw, int nargout=1) |
| bool | is_boolean_expression () const |
| type | op_type () const |
| std::string | oper () const |
| bool | rvalue_ok () const |
Public Member Functions inherited from tree_binary_expression | |
| 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 () | |
| bool | is_binary_expression () const |
| virtual bool | is_braindead () const |
| tree_expression * | lhs () |
| void | lhs (tree_expression *expr) |
| void | matlab_style_short_circuit_warning (const char *op) |
| octave_value::binary_op | op_type () const |
| void | preserve_operands () |
| std::string | profiler_name () const |
| tree_expression * | rhs () |
| void | rhs (tree_expression *expr) |
Public Member Functions inherited from tree_expression | |
| tree_expression (int l=-1, int c=-1) | |
| virtual | ~tree_expression ()=default |
| virtual void | copy_base (const tree_expression &e) |
| virtual bool | is_assignment_expression () const |
| virtual bool | is_colon_expression () const |
| virtual bool | is_constant () const |
| bool | is_for_cmd_expr () const |
| virtual bool | is_identifier () const |
| virtual bool | is_index_expression () const |
| virtual bool | is_matrix () const |
| bool | is_postfix_indexed () const |
| virtual bool | is_prefix_expression () const |
| virtual bool | is_unary_expression () const |
| virtual bool | iscell () const |
| virtual octave_lvalue | lvalue (tree_evaluator &) |
| virtual bool | lvalue_ok () const |
| void | mark_as_for_cmd_expr () |
| tree_expression * | mark_in_parens () |
| virtual std::string | name () const |
| virtual std::string | original_text () const |
| int | paren_count () const |
| char | postfix_index () const |
| bool | print_result () const |
| tree_expression * | set_postfix_index (char type) |
| tree_expression * | set_print_flag (bool print) |
Public Member Functions inherited from tree | |
| tree (int l=-1, int c=-1) | |
| virtual | ~tree ()=default |
| const std::string | bp_cond () const |
| virtual int | column () const |
| void | column (int c) |
| virtual void | delete_breakpoint () |
| bool | is_active_breakpoint (tree_evaluator &tw) const |
| bool | is_breakpoint () const |
| virtual int | line () const |
| void | line (int l) |
| bool | meets_bp_condition (tree_evaluator &tw) const |
| virtual void | set_breakpoint (const std::string &condition) |
| void | set_location (int l, int c) |
| std::string | str_print_code () |
Additional Inherited Members | |
Protected Attributes inherited from tree_binary_expression | |
| tree_expression * | m_lhs |
| tree_expression * | m_rhs |
Protected Attributes inherited from tree_expression | |
| bool | m_for_cmd_expr |
| int | m_num_parens |
| char | m_postfix_index_type |
| bool | m_print_flag |
Definition at line 153 of file pt-binop.h.
| Enumerator | |
|---|---|
| unknown | |
| bool_and | |
| bool_or | |
Definition at line 157 of file pt-binop.h.
|
inline |
Definition at line 164 of file pt-binop.h.
Referenced by dup().
|
inline |
Definition at line 167 of file pt-binop.h.
|
default |
|
inlinevirtual |
Reimplemented from tree_binary_expression.
Definition at line 192 of file pt-binop.h.
References tree_walker::visit_boolean_expression().
|
virtual |
Reimplemented from tree_binary_expression.
Definition at line 193 of file pt-binop.cc.
References tree_boolean_expression(), tree::column(), tree_expression::copy_base(), tree_expression::dup(), tree_binary_expression::m_lhs, and tree_binary_expression::m_rhs.
|
virtual |
Reimplemented from tree_binary_expression.
Definition at line 206 of file pt-binop.cc.
References bool_and, bool_or, tree_expression::evaluate(), octave_value::is_true(), tree_binary_expression::m_lhs, tree_binary_expression::m_rhs, and octave_value().
Referenced by evaluate_n().
|
inlinevirtual |
Reimplemented from tree_binary_expression.
Definition at line 187 of file pt-binop.h.
References evaluate(), and ovl().
|
inlinevirtual |
Reimplemented from tree_expression.
Definition at line 175 of file pt-binop.h.
|
inline |
Definition at line 181 of file pt-binop.h.
|
virtual |
Reimplemented from tree_binary_expression.
Definition at line 171 of file pt-binop.cc.
|
inlinevirtual |
Reimplemented from tree_binary_expression.
Definition at line 177 of file pt-binop.h.