GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "oct-lvalue.h"
Public Member Functions | |
octave_lvalue (const symbol_table::symbol_reference &s=symbol_table::symbol_reference()) | |
octave_lvalue (const octave_lvalue &vr) | |
~octave_lvalue (void) | |
void | assign (octave_value::assign_op, const octave_value &) |
void | clear_index (void) |
void | define (const octave_value &v) |
void | do_unary_op (octave_value::unary_op op) |
bool | index_is_empty (void) const |
std::string | index_type (void) const |
bool | is_black_hole (void) const |
bool | is_defined (void) const |
bool | is_map (void) const |
bool | is_undefined (void) const |
void | numel (octave_idx_type n) |
octave_idx_type | numel (void) const |
octave_lvalue & | operator= (const octave_lvalue &vr) |
void | set_index (const std::string &t, const std::list< octave_value_list > &i) |
octave_value | value (void) const |
Private Attributes | |
std::list< octave_value_list > | idx |
octave_idx_type | nel |
symbol_table::symbol_reference | sym |
std::string | type |
Definition at line 37 of file oct-lvalue.h.
|
inline |
Definition at line 42 of file oct-lvalue.h.
|
inline |
Definition at line 47 of file oct-lvalue.h.
|
inline |
Definition at line 64 of file oct-lvalue.h.
void octave_lvalue::assign | ( | octave_value::assign_op | op, |
const octave_value & | rhs | ||
) |
Definition at line 33 of file oct-lvalue.cc.
References symbol_table::symbol_record::assign(), idx, is_black_hole(), sym, and type.
Referenced by do_global_init(), do_static_init(), tree_decl_elt::eval(), tree_parameter_list::initialize_undefined_elements(), tree_multi_assignment::rvalue(), tree_simple_assignment::rvalue1(), tree_parameter_list::undefine(), octave::tree_evaluator::visit_complex_for_command(), octave::tree_evaluator::visit_simple_for_command(), and octave::tree_evaluator::visit_try_catch_command().
|
inline |
Definition at line 93 of file oct-lvalue.h.
References type.
Referenced by tree_multi_assignment::rvalue(), and tree_simple_assignment::rvalue1().
|
inline |
Definition at line 83 of file oct-lvalue.h.
Referenced by tree_parameter_list::define_from_arg_vector(), and tree_multi_assignment::rvalue().
void octave_lvalue::do_unary_op | ( | octave_value::unary_op | op | ) |
Definition at line 71 of file oct-lvalue.cc.
References symbol_table::symbol_record::do_non_const_unary_op(), idx, is_black_hole(), sym, and type.
Referenced by tree_prefix_expression::rvalue1(), and tree_postfix_expression::rvalue1().
bool octave_lvalue::index_is_empty | ( | void | ) | const |
Definition at line 56 of file oct-lvalue.cc.
References idx, octave_value_list::length(), retval, and tmp.
Referenced by tree_multi_assignment::rvalue().
|
inline |
Definition at line 95 of file oct-lvalue.h.
References type.
Referenced by tree_multi_assignment::rvalue().
|
inline |
Definition at line 66 of file oct-lvalue.h.
Referenced by assign(), do_unary_op(), tree_multi_assignment::rvalue(), and value().
|
inline |
Definition at line 68 of file oct-lvalue.h.
Referenced by octave_value::is_undefined().
|
inline |
Definition at line 78 of file oct-lvalue.h.
References value().
|
inline |
Definition at line 73 of file oct-lvalue.h.
Referenced by do_global_init(), do_static_init(), and tree_multi_assignment::rvalue().
|
inline |
Definition at line 87 of file oct-lvalue.h.
Referenced by tree_index_expression::lvalue(), tree_multi_assignment::rvalue(), and tree_simple_assignment::rvalue1().
|
inline |
Definition at line 89 of file oct-lvalue.h.
|
inline |
void octave_lvalue::set_index | ( | const std::string & | t, |
const std::list< octave_value_list > & | i | ||
) |
Definition at line 45 of file oct-lvalue.cc.
References error(), idx, t, and type.
Referenced by tree_index_expression::lvalue(), and tree_multi_assignment::rvalue().
octave_value octave_lvalue::value | ( | void | ) | const |
Definition at line 83 of file oct-lvalue.cc.
References idx, is_black_hole(), octave_value::is_constant(), octave_value_list::length(), retval, octave_value::subsref(), sym, t, type, val, and symbol_table::symbol_record::varval().
Referenced by is_method_executing(), tree_index_expression::lvalue(), tree_multi_assignment::rvalue(), tree_simple_assignment::rvalue1(), tree_prefix_expression::rvalue1(), and tree_postfix_expression::rvalue1().
|
private |
Definition at line 109 of file oct-lvalue.h.
Referenced by assign(), do_unary_op(), index_is_empty(), operator=(), set_index(), and value().
|
private |
Definition at line 111 of file oct-lvalue.h.
Referenced by octave_value_list::octave_value_list(), and operator=().
|
private |
Definition at line 105 of file oct-lvalue.h.
Referenced by assign(), do_unary_op(), operator=(), and value().
|
private |
Definition at line 107 of file oct-lvalue.h.
Referenced by assign(), do_unary_op(), operator=(), set_index(), and value().