diff src/ov.h @ 9329:67fc970dad7d

improve indexed assignment using indexed numel
author Jaroslav Hajek <highegg@gmail.com>
date Wed, 10 Jun 2009 11:31:58 +0200
parents d8f9588c6ba1
children e2344f4af0cb
line wrap: on
line diff
--- a/src/ov.h	Wed Jun 10 20:33:10 2009 -0400
+++ b/src/ov.h	Wed Jun 10 11:31:58 2009 +0200
@@ -354,6 +354,13 @@
   octave_base_value *try_narrowing_conversion (void)
     { return rep->try_narrowing_conversion (); }
 
+  // Close to dims (), but can be overloaded for classes.
+  Matrix size (void)
+    { return rep->size (); }
+
+  octave_idx_type numel (const octave_value_list& idx)
+    { return rep->numel (idx); }
+
   octave_value single_subsref (const std::string& type,
 			       const octave_value_list& idx);
 
@@ -424,8 +431,6 @@
   octave_idx_type capacity (void) const
     { return rep->capacity (); }
 
-  Matrix size (void) const;
-
   size_t byte_size (void) const
     { return rep->byte_size (); }