diff liboctave/Array.h @ 5900:c20eb7330d13

[project @ 2006-07-22 08:31:16 by jwe]
author jwe
date Sat, 22 Jul 2006 08:31:17 +0000
parents ace8d8d26933
children 143b556ce725
line wrap: on
line diff
--- a/liboctave/Array.h	Wed Jul 19 23:00:22 2006 +0000
+++ b/liboctave/Array.h	Sat Jul 22 08:31:17 2006 +0000
@@ -132,6 +132,8 @@
 
 public:
 
+  typedef T element_type;
+
   // !!! WARNING !!! -- these should be protected, not public.  You
   // should not access these data members directly!
 
@@ -534,6 +536,10 @@
   //  static T resize_fill_value (void) { return T (); }
 
   void print_info (std::ostream& os, const std::string& prefix) const;
+
+  // Unsafe.  This function exists to support the MEX interface.
+  // You should not use it anywhere else.
+  void *mex_get_data (void) const { return const_cast<T *> (data ()); }
 };
 
 // NOTE: these functions should be friends of the Array<T> class and