#include "oct-lvalue.h"
Public Member Functions | |
octave_lvalue (void) | |
octave_lvalue (const symbol_record &sr, symbol_record::context_id context) | |
octave_lvalue (const octave_lvalue &)=default | |
~octave_lvalue (void)=default | |
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_undefined (void) const |
bool | isstruct (void) const |
void | mark_black_hole (void) |
void | numel (octave_idx_type n) |
octave_idx_type | numel (void) const |
octave_lvalue & | operator= (const octave_lvalue &)=default |
void | set_index (const std::string &t, const std::list< octave_value_list > &i) |
octave_value | value (void) const |
Private Attributes | |
bool | m_black_hole |
symbol_record::context_id | m_context |
std::list< octave_value_list > | m_idx |
octave_idx_type | m_nel |
symbol_record | m_sym |
std::string | m_type |
Definition at line 35 of file oct-lvalue.h.
|
inline |
Definition at line 39 of file oct-lvalue.h.
|
inline |
Definition at line 44 of file oct-lvalue.h.
|
default |
|
default |
void octave::octave_lvalue::assign | ( | octave_value::assign_op | op, |
const octave_value & | rhs | ||
) |
Definition at line 34 of file oct-lvalue.cc.
References octave::symbol_record::assign(), is_black_hole(), m_context, m_idx, m_sym, and m_type.
Referenced by octave::tree_evaluator::eval_decl_elt(), octave::tree_evaluator::undefine_parameter_list(), octave::tree_evaluator::visit_complex_for_command(), octave::tree_evaluator::visit_decl_elt(), octave::tree_evaluator::visit_simple_assignment(), octave::tree_evaluator::visit_simple_for_command(), and octave::tree_evaluator::visit_try_catch_command().
|
inline |
Definition at line 81 of file oct-lvalue.h.
Referenced by octave::tree_evaluator::visit_simple_assignment().
|
inline |
Definition at line 71 of file oct-lvalue.h.
References octave::symbol_record::assign(), m_context, and m_sym.
Referenced by octave::tree_evaluator::define_parameter_list_from_arg_vector().
void octave::octave_lvalue::do_unary_op | ( | octave_value::unary_op | op | ) |
Definition at line 70 of file oct-lvalue.cc.
References octave::symbol_record::do_non_const_unary_op(), is_black_hole(), m_context, m_idx, m_sym, and m_type.
Referenced by octave::tree_evaluator::visit_postfix_expression(), and octave::tree_evaluator::visit_prefix_expression().
bool octave::octave_lvalue::index_is_empty | ( | void | ) | const |
Definition at line 56 of file oct-lvalue.cc.
|
inline |
Definition at line 83 of file oct-lvalue.h.
References m_type.
|
inline |
Definition at line 55 of file oct-lvalue.h.
References m_black_hole.
Referenced by assign(), do_unary_op(), is_defined(), is_undefined(), and value().
|
inline |
Definition at line 59 of file oct-lvalue.h.
References is_black_hole(), octave::symbol_record::is_defined(), m_context, and m_sym.
|
inline |
Definition at line 64 of file oct-lvalue.h.
References is_black_hole(), octave::symbol_record::is_undefined(), m_context, and m_sym.
Referenced by octave::tree_evaluator::visit_decl_elt().
|
inline |
Definition at line 69 of file oct-lvalue.h.
References octave_value::isstruct(), and value().
|
inline |
Definition at line 57 of file oct-lvalue.h.
References m_black_hole.
|
inline |
Definition at line 75 of file oct-lvalue.h.
References m_nel.
Referenced by octave::tree_evaluator::visit_simple_assignment().
|
inline |
Definition at line 77 of file oct-lvalue.h.
References m_nel.
|
default |
void octave::octave_lvalue::set_index | ( | const std::string & | t, |
const std::list< octave_value_list > & | i | ||
) |
octave_value octave::octave_lvalue::value | ( | void | ) | const |
Definition at line 81 of file oct-lvalue.cc.
References is_black_hole(), octave_value_list::length(), m_context, m_idx, m_sym, m_type, retval, t, val, and octave::symbol_record::varval().
Referenced by isstruct(), octave::tree_evaluator::visit_postfix_expression(), octave::tree_evaluator::visit_prefix_expression(), and octave::tree_evaluator::visit_simple_assignment().
|
private |
Definition at line 97 of file oct-lvalue.h.
Referenced by is_black_hole(), and mark_black_hole().
|
private |
Definition at line 95 of file oct-lvalue.h.
Referenced by assign(), define(), do_unary_op(), is_defined(), is_undefined(), and value().
|
private |
Definition at line 101 of file oct-lvalue.h.
Referenced by assign(), clear_index(), do_unary_op(), index_is_empty(), set_index(), and value().
|
private |
Definition at line 103 of file oct-lvalue.h.
Referenced by numel().
|
private |
Definition at line 93 of file oct-lvalue.h.
Referenced by assign(), define(), do_unary_op(), is_defined(), is_undefined(), and value().
|
private |
Definition at line 99 of file oct-lvalue.h.
Referenced by assign(), clear_index(), do_unary_op(), index_type(), set_index(), and value().