gtsam/wrap/tests/expected/@Point2/dim.cpp

15 lines
454 B
C++
Raw Normal View History

// automatically generated by wrap
#include <wrap/matlab.h>
2012-06-29 00:13:22 +08:00
#include <set>
#include <Point2.h>
2012-06-29 00:13:22 +08:00
typedef boost::shared_ptr<Point2> Shared;
void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
{
checkArguments("dim",nargout,nargin-1,0);
2012-06-29 00:13:22 +08:00
mxArray* mxh = mxGetProperty(in[0],0,"self");
Shared* self = *reinterpret_cast<Shared**> (mxGetPr(mxh));
Shared obj = *self;
int result = obj->dim();
out[0] = wrap< int >(result);
}