#include "oct-lvalue.h"
Public Member Functions | |
octave_lvalue (const symbol_record &sr, const std::shared_ptr< stack_frame > &frame) | |
void | assign (octave_value::assign_op, const octave_value &) |
void | clear_index () |
void | define (const octave_value &v) |
bool | index_is_colon () const |
bool | index_is_empty () const |
std::string | index_type () const |
bool | is_black_hole () const |
bool | is_defined () const |
bool | is_undefined () const |
bool | isstruct () const |
void | mark_black_hole () |
octave_idx_type | numel () const |
void | set_index (const std::string &t, const std::list< octave_value_list > &i) |
void | unary_op (octave_value::unary_op op) |
octave_value | value () const |
Definition at line 39 of file oct-lvalue.h.
|
inline |
Definition at line 43 of file oct-lvalue.h.
void octave_lvalue::assign | ( | octave_value::assign_op | op, |
const octave_value & | rhs | ||
) |
Definition at line 58 of file oct-lvalue.cc.
References is_black_hole().
Referenced by tree_evaluator::eval_decl_elt(), tree_simple_assignment::evaluate(), tree_evaluator::undefine_parameter_list(), tree_evaluator::visit_complex_for_command(), tree_evaluator::visit_decl_elt(), tree_evaluator::visit_simple_for_command(), and tree_evaluator::visit_try_catch_command().
|
inline |
Definition at line 70 of file oct-lvalue.h.
Referenced by tree_simple_assignment::evaluate().
void octave_lvalue::define | ( | const octave_value & | v | ) |
Definition at line 52 of file oct-lvalue.cc.
Referenced by tree_evaluator::define_parameter_list_from_arg_vector().
bool octave_lvalue::index_is_colon | ( | ) | const |
Definition at line 202 of file oct-lvalue.cc.
References octave_value_list::length().
bool octave_lvalue::index_is_empty | ( | ) | const |
Definition at line 187 of file oct-lvalue.cc.
References octave_value_list::length().
|
inline |
Definition at line 72 of file oct-lvalue.h.
|
inline |
Definition at line 51 of file oct-lvalue.h.
Referenced by assign(), unary_op(), and value().
bool octave_lvalue::is_defined | ( | ) | const |
Definition at line 40 of file oct-lvalue.cc.
References is_defined().
Referenced by is_defined(), and is_undefined().
bool octave_lvalue::is_undefined | ( | ) | const |
Definition at line 46 of file oct-lvalue.cc.
References is_defined().
Referenced by tree_evaluator::visit_decl_elt().
|
inline |
Definition at line 59 of file oct-lvalue.h.
|
inline |
Definition at line 53 of file oct-lvalue.h.
Referenced by tree_black_hole::lvalue().
octave_idx_type octave_lvalue::numel | ( | ) | const |
Definition at line 66 of file oct-lvalue.cc.
References err_invalid_inquiry_subscript(), octave_value_list::has_magic_colon(), octave_value::is_matrix_type(), octave_value::is_string(), octave_value::is_undefined(), octave_value::is_zero_by_zero(), octave_value::iscell(), panic_impossible, and octave_value::xnumel().
Referenced by tree_simple_assignment::evaluate().
void octave_lvalue::set_index | ( | const std::string & | t, |
const std::list< octave_value_list > & | i | ||
) |
Definition at line 176 of file oct-lvalue.cc.
References error().
Referenced by tree_index_expression::lvalue().
void octave_lvalue::unary_op | ( | octave_value::unary_op | op | ) |
Definition at line 217 of file oct-lvalue.cc.
References is_black_hole().
Referenced by tree_prefix_expression::evaluate(), and tree_postfix_expression::evaluate().
octave_value octave_lvalue::value | ( | ) | const |
Definition at line 224 of file oct-lvalue.cc.
References is_black_hole().
Referenced by tree_prefix_expression::evaluate(), tree_postfix_expression::evaluate(), tree_simple_assignment::evaluate(), and tree_index_expression::lvalue().