comparison liboctave/Array.h @ 9624:3fc7272937ce

implement Array<T>::clear overloads
author Jaroslav Hajek <highegg@gmail.com>
date Sun, 06 Sep 2009 10:54:36 +0200
parents 948795dc1974
children e087d7c77ff9
comparison
equal deleted inserted replaced
9623:bc0739d02724 9624:3fc7272937ce
264 264
265 return *this; 265 return *this;
266 } 266 }
267 267
268 void fill (const T& val); 268 void fill (const T& val);
269
269 void clear (void); 270 void clear (void);
271 void clear (const dim_vector& dv);
272 void clear (octave_idx_type n)
273 { clear (dim_vector (n)); }
274
275 void clear (octave_idx_type r, octave_idx_type c)
276 { clear (dim_vector (r, c)); }
270 277
271 octave_idx_type capacity (void) const { return slice_len; } 278 octave_idx_type capacity (void) const { return slice_len; }
272 octave_idx_type length (void) const { return capacity (); } 279 octave_idx_type length (void) const { return capacity (); }
273 octave_idx_type nelem (void) const { return capacity (); } 280 octave_idx_type nelem (void) const { return capacity (); }
274 octave_idx_type numel (void) const { return nelem (); } 281 octave_idx_type numel (void) const { return nelem (); }