2011-12-02 10:32:18 +08:00
|
|
|
// automatically generated by wrap on 2011-Dec-01
|
2011-10-14 02:41:56 +08:00
|
|
|
#include <wrap/matlab.h>
|
|
|
|
#include <Test.h>
|
|
|
|
void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
|
|
{
|
|
|
|
checkArguments("create_ptrs",nargout,nargin-1,0);
|
2011-12-02 10:32:18 +08:00
|
|
|
shared_ptr<const Test> self = unwrap_shared_ptr< Test >(in[0],"Test");
|
2011-10-14 02:41:56 +08:00
|
|
|
pair< shared_ptr<Test>, shared_ptr<Test> > result = self->create_ptrs();
|
|
|
|
out[0] = wrap_shared_ptr(result.first,"Test");
|
|
|
|
out[1] = wrap_shared_ptr(result.second,"Test");
|
|
|
|
}
|