diff src/ov-ch-mat.h @ 10503:fcf6341a8cab

octave_char_matrix::mex_get_data: new function
author John W. Eaton <jwe@octave.org>
date Fri, 09 Apr 2010 13:59:13 -0400
parents 5150ceb4dbb4
children 4d1fc073fbb7
line wrap: on
line diff
--- a/src/ov-ch-mat.h	Fri Apr 09 09:54:19 2010 -0400
+++ b/src/ov-ch-mat.h	Fri Apr 09 13:59:13 2010 -0400
@@ -144,6 +144,10 @@
 
   void print_raw (std::ostream& os, bool pr_as_read_syntax = false) const;
 
+  // Unsafe.  This function exists to support the MEX interface.
+  // You should not use it anywhere else.
+  void *mex_get_data (void) const { return matrix.mex_get_data (); }
+
   mxArray *as_mxArray (void) const;
 
   octave_value map (unary_mapper_t umap) const;