Mercurial > hg > octave-lyh
diff src/ov-struct.h @ 8551:906f976d35a8
further improve struct&cell indexing & indexed assignment
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 21 Jan 2009 13:02:49 +0100 |
parents | 3d8a914c580e |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/src/ov-struct.h +++ b/src/ov-struct.h @@ -63,7 +63,7 @@ octave_base_value *clone (void) const { return new octave_struct (*this); } octave_base_value *empty_clone (void) const { return new octave_struct (); } - Cell dotref (const octave_value_list& idx); + Cell dotref (const octave_value_list& idx, bool auto_add = false); octave_value subsref (const std::string& type, const std::list<octave_value_list>& idx) @@ -75,6 +75,10 @@ octave_value_list subsref (const std::string&, const std::list<octave_value_list>&, int); + octave_value subsref (const std::string& type, + const std::list<octave_value_list>& idx, + bool auto_add); + static octave_value numeric_conv (const octave_value& val, const std::string& type);