Mercurial > hg > octave-avbm
changeset 10579:fd6899b1b00e
use common error message for indexed cs-lists
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 27 Apr 2010 21:20:11 +0200 |
parents | cb0883127251 |
children | 1479b93ee655 |
files | src/ChangeLog src/ov-cs-list.cc src/ov-cs-list.h |
diffstat | 3 files changed, 29 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-04-27 Jaroslav Hajek <highegg@gmail.com> + + * ov-cs-list.cc (octave_cs_list::subsref): New methods. Just gripe. + * ov-cs-list.h: Declare them. + 2010-04-27 John W. Eaton <jwe@octave.org> * ov-usr-fcn.cc (octave_user_script::do_multi_index_op):
--- a/src/ov-cs-list.cc +++ b/src/ov-cs-list.cc @@ -31,6 +31,7 @@ #include "defun.h" #include "error.h" +#include "gripes.h" #include "ov-cs-list.h" #include "unwind-prot.h" @@ -42,3 +43,20 @@ : octave_base_value (), lst (c) { } + +octave_value +octave_cs_list::subsref (const std::string&, + const std::list<octave_value_list>&) +{ + gripe_indexed_cs_list (); + return octave_value (); +} + +octave_value_list +octave_cs_list::subsref (const std::string&, + const std::list<octave_value_list>&, int) +{ + gripe_indexed_cs_list (); + return octave_value_list (); +} +
--- a/src/ov-cs-list.h +++ b/src/ov-cs-list.h @@ -72,6 +72,12 @@ octave_value_list list_value (void) const { return lst; } + octave_value subsref (const std::string& type, + const std::list<octave_value_list>& idx); + + octave_value_list subsref (const std::string& type, + const std::list<octave_value_list>& idx, int); + private: // The list of Octave values.