Mercurial > octave-nkf
diff src/oct-lvalue.h @ 3357:34d512262892
[project @ 1999-11-18 07:18:30 by jwe]
author | jwe |
---|---|
date | Thu, 18 Nov 1999 07:18:31 +0000 |
parents | bc61b0e8d60e |
children | b80bbb43a1a9 |
line wrap: on
line diff
--- a/src/oct-lvalue.h Thu Nov 18 06:17:08 1999 +0000 +++ b/src/oct-lvalue.h Thu Nov 18 07:18:31 1999 +0000 @@ -37,15 +37,15 @@ public: octave_lvalue (octave_value *v = 0, symbol_record::change_function f = 0) - : val (v), idx (), chg_fcn (f), struct_elt_name () { } + : val (v), idx (), chg_fcn (f), struct_elt_name (), index_set (false) { } octave_lvalue (octave_value *v, const string& nm, symbol_record::change_function f = 0) - : val (v), idx (), chg_fcn (f), struct_elt_name (nm) { } + : val (v), idx (), chg_fcn (f), struct_elt_name (nm), index_set (false) { } octave_lvalue (const octave_lvalue& vr) : val (vr.val), idx (vr.idx), chg_fcn (vr.chg_fcn), - struct_elt_name (vr.struct_elt_name) { } + struct_elt_name (vr.struct_elt_name), index_set (vr.index_set) { } octave_lvalue& operator = (const octave_lvalue& vr) { @@ -55,6 +55,7 @@ idx = vr.idx; chg_fcn = vr.chg_fcn; struct_elt_name = vr.struct_elt_name; + index_set = vr.index_set; } return *this; @@ -78,7 +79,7 @@ return val->struct_elt_ref (nm); } - void set_index (const octave_value_list& i) { idx = i; } + void set_index (const octave_value_list& i); void clear_index (void) { idx = octave_value_list (); } @@ -104,6 +105,8 @@ symbol_record::change_function chg_fcn; string struct_elt_name; + + bool index_set; }; #endif