26 #if defined (HAVE_CONFIG_H)
42 return ! is_black_hole () && m_frame->
is_defined (m_sym);
54 m_frame->assign (m_sym, v);
62 m_frame->assign (op, m_sym, m_type, m_idx, rhs);
73 std::size_t num_indices = m_idx.size ();
78 switch (m_type[num_indices-1])
89 std::string tmp_type = m_type;
90 std::list<octave_value_list> tmp_idx = m_idx;
121 std::string tmp_type = m_type;
122 std::list<octave_value_list> tmp_idx = m_idx;
124 tmp_type.pop_back ();
127 bool paren_dot = num_indices > 1 && m_type[num_indices-2] ==
'(';
134 pidx = tmp_idx.back ();
136 tmp_type.pop_back ();
177 const std::list<octave_value_list>& i)
179 if (! m_idx.empty ())
180 error (
"invalid index expression in assignment");
191 if (m_idx.size () == 1)
195 retval = (tmp.
length () == 1 && tmp(0).isempty ());
206 if (m_idx.size () == 1)
210 retval = (tmp.
length () == 1 && tmp(0).is_magic_colon ());
220 m_frame->non_const_unary_op (op, m_sym, m_type, m_idx);
227 ?
octave_value () : m_frame->value (m_sym, m_type, m_idx));
231 octave_lvalue::eval_for_numel (
const std::string& type,
232 const std::list<octave_value_list>& idx)
const
238 retval = m_frame->varval (m_sym);
241 retval = retval.
subsref (type, idx);
259 OCTAVE_END_NAMESPACE(
octave)
void recover_from_exception()
bool index_is_empty() const
bool is_black_hole() const
bool is_undefined() const
void set_index(const std::string &t, const std::list< octave_value_list > &i)
void assign(octave_value::assign_op, const octave_value &)
void define(const octave_value &v)
octave_idx_type numel() const
octave_value value() const
void unary_op(octave_value::unary_op op)
bool index_is_colon() const
bool has_magic_colon() const
octave_idx_type length() const
bool is_undefined() const
octave_value subsref(const std::string &type, const std::list< octave_value_list > &idx)
octave_idx_type xnumel(const octave_value_list &idx)
bool is_zero_by_zero() const
bool is_matrix_type() const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
void() error(const char *fmt,...)
#define panic_impossible()
void err_invalid_inquiry_subscript()
interpreter & __get_interpreter__()
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))