Updated wrap unit tests
parent
dc036a0891
commit
d636534e40
|
@ -6,5 +6,5 @@ void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|||
checkArguments("vectorConfusion",nargout,nargin-1,0);
|
||||
boost::shared_ptr<Point2> self = unwrap_shared_ptr< Point2 >(in[0],"Point2");
|
||||
VectorNotEigen result = self->vectorConfusion();
|
||||
out[0] = wrap_shared_ptr(make_shared< VectorNotEigen >(result),"VectorNotEigen");
|
||||
out[0] = wrap_shared_ptr(boost::make_shared< VectorNotEigen >(result),"VectorNotEigen");
|
||||
}
|
||||
|
|
|
@ -7,6 +7,6 @@ void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|||
checkArguments("create_MixedPtrs",nargout,nargin-1,0);
|
||||
boost::shared_ptr<Test> self = unwrap_shared_ptr< Test >(in[0],"Test");
|
||||
pair< Test, boost::shared_ptr<Test> > result = self->create_MixedPtrs();
|
||||
out[0] = wrap_shared_ptr(make_shared< Test >(result.first),"Test");
|
||||
out[0] = wrap_shared_ptr(boost::make_shared< Test >(result.first),"Test");
|
||||
out[1] = wrap_shared_ptr(result.second,"Test");
|
||||
}
|
||||
|
|
|
@ -8,5 +8,5 @@ void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|||
boost::shared_ptr<Test> self = unwrap_shared_ptr< Test >(in[0],"Test");
|
||||
boost::shared_ptr<Test> value = unwrap_shared_ptr< Test >(in[1], "Test");
|
||||
Test result = self->return_Test(value);
|
||||
out[0] = wrap_shared_ptr(make_shared< Test >(result),"Test");
|
||||
out[0] = wrap_shared_ptr(boost::make_shared< Test >(result),"Test");
|
||||
}
|
||||
|
|
|
@ -7,5 +7,5 @@ void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|||
checkArguments("Point3_StaticFunctionRet",nargout,nargin,1);
|
||||
double z = unwrap< double >(in[0]);
|
||||
Point3 result = Point3::StaticFunctionRet(z);
|
||||
out[0] = wrap_shared_ptr(make_shared< Point3 >(result),"Point3");
|
||||
out[0] = wrap_shared_ptr(boost::make_shared< Point3 >(result),"Point3");
|
||||
}
|
||||
|
|
|
@ -8,5 +8,5 @@ void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|||
boost::shared_ptr<ns2::ClassA> self = unwrap_shared_ptr< ns2::ClassA >(in[0],"ns2ClassA");
|
||||
double q = unwrap< double >(in[1]);
|
||||
ns2::ns3::ClassB result = self->nsReturn(q);
|
||||
out[0] = wrap_shared_ptr(make_shared< ns2::ns3::ClassB >(result),"ns2ns3ClassB");
|
||||
out[0] = wrap_shared_ptr(boost::make_shared< ns2::ns3::ClassB >(result),"ns2ns3ClassB");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue