2012-02-07 03:45:40 +08:00
|
|
|
// automatically generated by wrap
|
2011-10-14 02:41:56 +08:00
|
|
|
#include <wrap/matlab.h>
|
2011-12-09 23:44:35 +08:00
|
|
|
#include <folder/path/to/Test.h>
|
2011-12-10 04:29:47 +08:00
|
|
|
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;
|
2011-10-14 02:41:56 +08:00
|
|
|
void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
|
|
{
|
|
|
|
checkArguments("create_ptrs",nargout,nargin-1,0);
|
2012-07-03 02:18:11 +08:00
|
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
2012-06-29 00:13:22 +08:00
|
|
|
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");
|
2011-10-14 02:41:56 +08:00
|
|
|
}
|