Mercurial > octave
diff libinterp/octave-value/ov.h @ 32147:8763a313ab91
new octave_value member function to compute end index for object
* ov.h, ov.cc (octave_value::end_index): New function adapted from
the end_value function defined in pt-eval.cc.
* pt-eval.cc (end_value): Delete static function. Change all calls to
end_value to use end_index instead.
author | Petter T. <petter.vilhelm@gmail.com> |
---|---|
date | Mon, 19 Jun 2023 17:27:37 -0400 |
parents | 00740c1f8e82 |
children | dea87a95ad18 |
line wrap: on
line diff
--- a/libinterp/octave-value/ov.h Mon Jun 19 17:01:18 2023 -0400 +++ b/libinterp/octave-value/ov.h Mon Jun 19 17:27:37 2023 -0400 @@ -504,6 +504,10 @@ return m_rep->do_index_op (idx, resize_ok); } + OCTINTERP_API octave_idx_type + end_index (octave_idx_type index_position, + octave_idx_type num_indices) const; + OCTINTERP_API octave_value subsasgn (const std::string& type, const std::list<octave_value_list>& idx, const octave_value& rhs);