gtsam/wrap/tests/expected/@Test/create_ptrs.cpp

21 lines
787 B
C++
Raw Normal View History

// automatically generated by wrap
#include <wrap/matlab.h>
2012-06-29 00:13:22 +08:00
#include <set>
2011-12-09 23:44:35 +08:00
#include <folder/path/to/Test.h>
using namespace geometry;
2012-06-29 00:13:22 +08:00
typedef boost::shared_ptr<Test> SharedTest;
typedef boost::shared_ptr<Test> SharedTest;
typedef boost::shared_ptr<Test> Shared;
void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
{
checkArguments("create_ptrs",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;
pair< SharedTest, SharedTest > result = obj->create_ptrs();
SharedTest* ret = new SharedTest(result.first);
out[0] = wrap_collect_shared_ptr(ret,"Test");
SharedTest* ret = new SharedTest(result.second);
out[1] = wrap_collect_shared_ptr(ret,"Test");
}