Mercurial > octave
diff src/Cell.cc @ 4587:7b957b442818
[project @ 2003-11-10 15:50:39 by jwe]
author | jwe |
---|---|
date | Mon, 10 Nov 2003 15:50:40 +0000 |
parents | 508238e65af7 |
children | 87c01a296263 |
line wrap: on
line diff
--- a/src/Cell.cc Sat Nov 08 06:32:17 2003 +0000 +++ b/src/Cell.cc Mon Nov 10 15:50:40 2003 +0000 @@ -47,17 +47,17 @@ } Cell -Cell::index (const octave_value_list& idx, bool resize_ok) const +Cell::index (const octave_value_list& idx_arg, bool resize_ok) const { Cell retval; - int n = idx.length (); + int n = idx_arg.length (); switch (n) { case 1: { - idx_vector i = idx(0).index_vector (); + idx_vector i = idx_arg(0).index_vector (); retval = index (i, resize_ok); } @@ -65,8 +65,8 @@ case 2: { - idx_vector i = idx(0).index_vector (); - idx_vector j = idx(1).index_vector (); + idx_vector i = idx_arg(0).index_vector (); + idx_vector j = idx_arg(1).index_vector (); retval = index (i, j, resize_ok); } @@ -77,7 +77,7 @@ Array<idx_vector> iv (n); for (int i = 0; i < n; i++) - iv(i) = idx(i).index_vector (); + iv(i) = idx_arg(i).index_vector (); retval = index (iv, resize_ok); } @@ -88,12 +88,12 @@ } Cell& -Cell::assign (const octave_value_list& idx, const Cell& rhs, +Cell::assign (const octave_value_list& idx_arg, const Cell& rhs, const octave_value& fill_val) { - for (int i = 0; i < idx.length (); i++) - set_index (idx(i).index_vector ()); + for (int i = 0; i < idx_arg.length (); i++) + set_index (idx_arg(i).index_vector ()); ::assign (*this, rhs, fill_val);