Mercurial > hg > octave-lyh
diff src/ov.h @ 5900:c20eb7330d13
[project @ 2006-07-22 08:31:16 by jwe]
author | jwe |
---|---|
date | Sat, 22 Jul 2006 08:31:17 +0000 |
parents | b9c45e0cf685 |
children | c038c2947ee1 |
line wrap: on
line diff
--- a/src/ov.h +++ b/src/ov.h @@ -38,6 +38,7 @@ #include "data-conv.h" #include "idx-vector.h" #include "mach-info.h" +#include "mxarray.h" #include "mx-base.h" #include "oct-alloc.h" #include "oct-time.h" @@ -348,6 +349,8 @@ octave_idx_type nzmax (void) const { return rep->nzmax (); } + octave_idx_type nfields (void) const { return rep->nfields (); } + octave_value reshape (const dim_vector& dv) const { return rep->reshape (dv); } @@ -804,6 +807,16 @@ octave_base_value *internal_rep (void) const { return rep; } + // Unsafe. These functions exist to support the MEX interface. + // You should not use them anywhere else. + void *mex_get_data (void) const { return rep->mex_get_data (); } + + octave_idx_type *mex_get_ir (void) const { return rep->mex_get_ir (); } + + octave_idx_type *mex_get_jc (void) const { return rep->mex_get_jc (); } + + mxArray *as_mxArray (void) const { return rep->as_mxArray (); } + protected: // The real representation.