Mercurial > octave-nkf
diff src/ov-range.h @ 3933:f9ea3dcf58ee
[project @ 2002-05-15 03:21:00 by jwe]
author | jwe |
---|---|
date | Wed, 15 May 2002 03:21:01 +0000 |
parents | b6cc5bcfba8f |
children | 0eb247b9cc9b |
line wrap: on
line diff
--- a/src/ov-range.h Tue May 07 18:10:44 2002 +0000 +++ b/src/ov-range.h Wed May 15 03:21:01 2002 +0000 @@ -40,6 +40,7 @@ #include "oct-alloc.h" #include "str-vec.h" +#include "SLList.h" #include "error.h" #include "ov-base.h" #include "ov-typeinfo.h" @@ -78,13 +79,20 @@ ~octave_range (void) { } - octave_value *clone (void) { return new octave_range (*this); } + octave_value *clone (void) const { return new octave_range (*this); } + octave_value *empty_clone (void) const { return new octave_range (); } type_conv_fcn numeric_conversion_function (void) const; octave_value *try_narrowing_conversion (void); - octave_value do_index_op (const octave_value_list& idx); + octave_value subsref (const std::string type, + const SLList<octave_value_list>& idx); + + octave_value do_index_op (const octave_value_list& idx, int resize_ok); + + octave_value do_index_op (const octave_value_list& idx) + { return do_index_op (idx, 0); } idx_vector index_vector (void) const { return idx_vector (range); }