622 lines
20 KiB
C++
622 lines
20 KiB
C++
// automatically generated by wrap
|
|
#include <wrap/matlab.h>
|
|
#include <map>
|
|
#include <boost/foreach.hpp>
|
|
|
|
#include <Point2.h>
|
|
#include <Point3.h>
|
|
#include <folder/path/to/Test.h>
|
|
|
|
typedef std::set<boost::shared_ptr<Point2>*> Collector_Point2;
|
|
static Collector_Point2 collector_Point2;
|
|
typedef std::set<boost::shared_ptr<Point3>*> Collector_Point3;
|
|
static Collector_Point3 collector_Point3;
|
|
typedef std::set<boost::shared_ptr<Test>*> Collector_Test;
|
|
static Collector_Test collector_Test;
|
|
void _deleteAllObjects()
|
|
{
|
|
for(Collector_Point2::iterator iter = collector_Point2.begin();
|
|
iter != collector_Point2.end(); ) {
|
|
delete *iter;
|
|
collector_Point2.erase(iter++);
|
|
}
|
|
for(Collector_Point3::iterator iter = collector_Point3.begin();
|
|
iter != collector_Point3.end(); ) {
|
|
delete *iter;
|
|
collector_Point3.erase(iter++);
|
|
}
|
|
for(Collector_Test::iterator iter = collector_Test.begin();
|
|
iter != collector_Test.end(); ) {
|
|
delete *iter;
|
|
collector_Test.erase(iter++);
|
|
}
|
|
}
|
|
void Point2_constructor_0(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
mexAtExit(&_deleteAllObjects);
|
|
typedef boost::shared_ptr<Point2> Shared;
|
|
|
|
Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0]));
|
|
collector_Point2.insert(self);
|
|
}
|
|
void Point2_constructor_1(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
mexAtExit(&_deleteAllObjects);
|
|
typedef boost::shared_ptr<Point2> Shared;
|
|
|
|
Shared *self = new Shared(new Point2());
|
|
collector_Point2.insert(self);
|
|
out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
|
|
*reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
|
|
}
|
|
|
|
void Point2_constructor_2(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
mexAtExit(&_deleteAllObjects);
|
|
typedef boost::shared_ptr<Point2> Shared;
|
|
|
|
double x = unwrap< double >(in[0]);
|
|
double y = unwrap< double >(in[1]);
|
|
Shared *self = new Shared(new Point2(x,y));
|
|
collector_Point2.insert(self);
|
|
out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
|
|
*reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
|
|
}
|
|
|
|
void Point2_deconstructor_3(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
typedef boost::shared_ptr<Point2> Shared;
|
|
checkArguments("delete_Point2",nargout,nargin,1);
|
|
Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0]));
|
|
Collector_Point2::iterator item;
|
|
item = collector_Point2.find(self);
|
|
if(item != collector_Point2.end()) {
|
|
delete self;
|
|
collector_Point2.erase(item);
|
|
}
|
|
}
|
|
|
|
void Point2_argChar_4(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
typedef boost::shared_ptr<Point2> Shared;
|
|
checkArguments("argChar",nargout,nargin-1,1);
|
|
Shared obj = unwrap_shared_ptr<Point2>(in[0], "Point2");
|
|
char a = unwrap< char >(in[1]);
|
|
obj->argChar(a);
|
|
}
|
|
|
|
void Point2_argUChar_5(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
typedef boost::shared_ptr<Point2> Shared;
|
|
checkArguments("argUChar",nargout,nargin-1,1);
|
|
Shared obj = unwrap_shared_ptr<Point2>(in[0], "Point2");
|
|
unsigned char a = unwrap< unsigned char >(in[1]);
|
|
obj->argUChar(a);
|
|
}
|
|
|
|
void Point2_dim_6(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
typedef boost::shared_ptr<Point2> Shared;
|
|
checkArguments("dim",nargout,nargin-1,0);
|
|
Shared obj = unwrap_shared_ptr<Point2>(in[0], "Point2");
|
|
int result = obj->dim();
|
|
out[0] = wrap< int >(result);
|
|
}
|
|
|
|
void Point2_returnChar_7(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
typedef boost::shared_ptr<Point2> Shared;
|
|
checkArguments("returnChar",nargout,nargin-1,0);
|
|
Shared obj = unwrap_shared_ptr<Point2>(in[0], "Point2");
|
|
char result = obj->returnChar();
|
|
out[0] = wrap< char >(result);
|
|
}
|
|
|
|
void Point2_vectorConfusion_8(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
typedef boost::shared_ptr<VectorNotEigen> SharedVectorNotEigen;
|
|
typedef boost::shared_ptr<Point2> Shared;
|
|
checkArguments("vectorConfusion",nargout,nargin-1,0);
|
|
Shared obj = unwrap_shared_ptr<Point2>(in[0], "Point2");
|
|
VectorNotEigen result = obj->vectorConfusion();
|
|
SharedVectorNotEigen* ret = new SharedVectorNotEigen(new VectorNotEigen(result));
|
|
out[0] = wrap_shared_ptr(ret,"VectorNotEigen");
|
|
}
|
|
|
|
void Point2_x_9(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
typedef boost::shared_ptr<Point2> Shared;
|
|
checkArguments("x",nargout,nargin-1,0);
|
|
Shared obj = unwrap_shared_ptr<Point2>(in[0], "Point2");
|
|
double result = obj->x();
|
|
out[0] = wrap< double >(result);
|
|
}
|
|
|
|
void Point2_y_10(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
typedef boost::shared_ptr<Point2> Shared;
|
|
checkArguments("y",nargout,nargin-1,0);
|
|
Shared obj = unwrap_shared_ptr<Point2>(in[0], "Point2");
|
|
double result = obj->y();
|
|
out[0] = wrap< double >(result);
|
|
}
|
|
|
|
void Point3_constructor_11(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
mexAtExit(&_deleteAllObjects);
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Point3> Shared;
|
|
|
|
Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0]));
|
|
collector_Point3.insert(self);
|
|
}
|
|
void Point3_constructor_12(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
mexAtExit(&_deleteAllObjects);
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Point3> Shared;
|
|
|
|
double x = unwrap< double >(in[0]);
|
|
double y = unwrap< double >(in[1]);
|
|
double z = unwrap< double >(in[2]);
|
|
Shared *self = new Shared(new Point3(x,y,z));
|
|
collector_Point3.insert(self);
|
|
out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
|
|
*reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
|
|
}
|
|
|
|
void Point3_deconstructor_13(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Point3> Shared;
|
|
checkArguments("delete_Point3",nargout,nargin,1);
|
|
Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0]));
|
|
Collector_Point3::iterator item;
|
|
item = collector_Point3.find(self);
|
|
if(item != collector_Point3.end()) {
|
|
delete self;
|
|
collector_Point3.erase(item);
|
|
}
|
|
}
|
|
|
|
void Point3_norm_14(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Point3> Shared;
|
|
checkArguments("norm",nargout,nargin-1,0);
|
|
Shared obj = unwrap_shared_ptr<Point3>(in[0], "Point3");
|
|
double result = obj->norm();
|
|
out[0] = wrap< double >(result);
|
|
}
|
|
|
|
void Point3_StaticFunctionRet_15(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Point3> SharedPoint3;
|
|
typedef boost::shared_ptr<Point3> Shared;
|
|
checkArguments("Point3.StaticFunctionRet",nargout,nargin,1);
|
|
double z = unwrap< double >(in[0]);
|
|
Point3 result = Point3::StaticFunctionRet(z);
|
|
SharedPoint3* ret = new SharedPoint3(new Point3(result));
|
|
out[0] = wrap_shared_ptr(ret,"Point3");
|
|
}
|
|
|
|
void Point3_staticFunction_16(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Point3> Shared;
|
|
checkArguments("Point3.staticFunction",nargout,nargin,0);
|
|
double result = Point3::staticFunction();
|
|
out[0] = wrap< double >(result);
|
|
}
|
|
|
|
void Test_constructor_17(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
mexAtExit(&_deleteAllObjects);
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
|
|
Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0]));
|
|
collector_Test.insert(self);
|
|
}
|
|
void Test_constructor_18(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
mexAtExit(&_deleteAllObjects);
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
|
|
Shared *self = new Shared(new Test());
|
|
collector_Test.insert(self);
|
|
out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
|
|
*reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
|
|
}
|
|
|
|
void Test_constructor_19(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
mexAtExit(&_deleteAllObjects);
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
|
|
double a = unwrap< double >(in[0]);
|
|
Matrix b = unwrap< Matrix >(in[1]);
|
|
Shared *self = new Shared(new Test(a,b));
|
|
collector_Test.insert(self);
|
|
out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
|
|
*reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
|
|
}
|
|
|
|
void Test_deconstructor_20(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("delete_Test",nargout,nargin,1);
|
|
Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0]));
|
|
Collector_Test::iterator item;
|
|
item = collector_Test.find(self);
|
|
if(item != collector_Test.end()) {
|
|
delete self;
|
|
collector_Test.erase(item);
|
|
}
|
|
}
|
|
|
|
void Test_arg_EigenConstRef_21(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("arg_EigenConstRef",nargout,nargin-1,1);
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
|
Matrix& value = *unwrap_shared_ptr< Matrix >(in[1], "Matrix");
|
|
obj->arg_EigenConstRef(value);
|
|
}
|
|
|
|
void Test_create_MixedPtrs_22(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> SharedTest;
|
|
typedef boost::shared_ptr<Test> SharedTest;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("create_MixedPtrs",nargout,nargin-1,0);
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
|
pair< Test, SharedTest > result = obj->create_MixedPtrs();
|
|
SharedTest* ret = new SharedTest(new Test(result.first));
|
|
out[0] = wrap_shared_ptr(ret,"Test");
|
|
SharedTest* ret = new SharedTest(result.second);
|
|
out[1] = wrap_shared_ptr(ret,"Test");
|
|
}
|
|
|
|
void Test_create_ptrs_23(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> SharedTest;
|
|
typedef boost::shared_ptr<Test> SharedTest;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("create_ptrs",nargout,nargin-1,0);
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
|
pair< SharedTest, SharedTest > result = obj->create_ptrs();
|
|
SharedTest* ret = new SharedTest(result.first);
|
|
out[0] = wrap_shared_ptr(ret,"Test");
|
|
SharedTest* ret = new SharedTest(result.second);
|
|
out[1] = wrap_shared_ptr(ret,"Test");
|
|
}
|
|
|
|
void Test_print_24(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("print",nargout,nargin-1,0);
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
|
obj->print();
|
|
}
|
|
|
|
void Test_return_Point2Ptr_25(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Point2> SharedPoint2;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("return_Point2Ptr",nargout,nargin-1,1);
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
|
bool value = unwrap< bool >(in[1]);
|
|
SharedPoint2 result = obj->return_Point2Ptr(value);
|
|
SharedPoint2* ret = new SharedPoint2(result);
|
|
out[0] = wrap_shared_ptr(ret,"Point2");
|
|
}
|
|
|
|
void Test_return_Test_26(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> SharedTest;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("return_Test",nargout,nargin-1,1);
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
|
boost::shared_ptr<Test> value = unwrap_shared_ptr< Test >(in[1], "Test");
|
|
Test result = obj->return_Test(value);
|
|
SharedTest* ret = new SharedTest(new Test(result));
|
|
out[0] = wrap_shared_ptr(ret,"Test");
|
|
}
|
|
|
|
void Test_return_TestPtr_27(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> SharedTest;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("return_TestPtr",nargout,nargin-1,1);
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
|
boost::shared_ptr<Test> value = unwrap_shared_ptr< Test >(in[1], "Test");
|
|
SharedTest result = obj->return_TestPtr(value);
|
|
SharedTest* ret = new SharedTest(result);
|
|
out[0] = wrap_shared_ptr(ret,"Test");
|
|
}
|
|
|
|
void Test_return_bool_28(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("return_bool",nargout,nargin-1,1);
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
|
bool value = unwrap< bool >(in[1]);
|
|
bool result = obj->return_bool(value);
|
|
out[0] = wrap< bool >(result);
|
|
}
|
|
|
|
void Test_return_double_29(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("return_double",nargout,nargin-1,1);
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
|
double value = unwrap< double >(in[1]);
|
|
double result = obj->return_double(value);
|
|
out[0] = wrap< double >(result);
|
|
}
|
|
|
|
void Test_return_field_30(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("return_field",nargout,nargin-1,1);
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
|
Test& t = *unwrap_shared_ptr< Test >(in[1], "Test");
|
|
bool result = obj->return_field(t);
|
|
out[0] = wrap< bool >(result);
|
|
}
|
|
|
|
void Test_return_int_31(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("return_int",nargout,nargin-1,1);
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
|
int value = unwrap< int >(in[1]);
|
|
int result = obj->return_int(value);
|
|
out[0] = wrap< int >(result);
|
|
}
|
|
|
|
void Test_return_matrix1_32(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("return_matrix1",nargout,nargin-1,1);
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
|
Matrix value = unwrap< Matrix >(in[1]);
|
|
Matrix result = obj->return_matrix1(value);
|
|
out[0] = wrap< Matrix >(result);
|
|
}
|
|
|
|
void Test_return_matrix2_33(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("return_matrix2",nargout,nargin-1,1);
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
|
Matrix value = unwrap< Matrix >(in[1]);
|
|
Matrix result = obj->return_matrix2(value);
|
|
out[0] = wrap< Matrix >(result);
|
|
}
|
|
|
|
void Test_return_pair_34(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("return_pair",nargout,nargin-1,2);
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
|
Vector v = unwrap< Vector >(in[1]);
|
|
Matrix A = unwrap< Matrix >(in[2]);
|
|
pair< Vector, Matrix > result = obj->return_pair(v,A);
|
|
out[0] = wrap< Vector >(result.first);
|
|
out[1] = wrap< Matrix >(result.second);
|
|
}
|
|
|
|
void Test_return_ptrs_35(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> SharedTest;
|
|
typedef boost::shared_ptr<Test> SharedTest;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("return_ptrs",nargout,nargin-1,2);
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
|
boost::shared_ptr<Test> p1 = unwrap_shared_ptr< Test >(in[1], "Test");
|
|
boost::shared_ptr<Test> p2 = unwrap_shared_ptr< Test >(in[2], "Test");
|
|
pair< SharedTest, SharedTest > result = obj->return_ptrs(p1,p2);
|
|
SharedTest* ret = new SharedTest(result.first);
|
|
out[0] = wrap_shared_ptr(ret,"Test");
|
|
SharedTest* ret = new SharedTest(result.second);
|
|
out[1] = wrap_shared_ptr(ret,"Test");
|
|
}
|
|
|
|
void Test_return_size_t_36(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("return_size_t",nargout,nargin-1,1);
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
|
size_t value = unwrap< size_t >(in[1]);
|
|
size_t result = obj->return_size_t(value);
|
|
out[0] = wrap< size_t >(result);
|
|
}
|
|
|
|
void Test_return_string_37(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("return_string",nargout,nargin-1,1);
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
|
string value = unwrap< string >(in[1]);
|
|
string result = obj->return_string(value);
|
|
out[0] = wrap< string >(result);
|
|
}
|
|
|
|
void Test_return_vector1_38(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("return_vector1",nargout,nargin-1,1);
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
|
Vector value = unwrap< Vector >(in[1]);
|
|
Vector result = obj->return_vector1(value);
|
|
out[0] = wrap< Vector >(result);
|
|
}
|
|
|
|
void Test_return_vector2_39(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
using namespace geometry;
|
|
typedef boost::shared_ptr<Test> Shared;
|
|
checkArguments("return_vector2",nargout,nargin-1,1);
|
|
Shared obj = unwrap_shared_ptr<Test>(in[0], "Test");
|
|
Vector value = unwrap< Vector >(in[1]);
|
|
Vector result = obj->return_vector2(value);
|
|
out[0] = wrap< Vector >(result);
|
|
}
|
|
|
|
void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
{
|
|
mstream mout;
|
|
std::streambuf *outbuf = std::cout.rdbuf(&mout);
|
|
|
|
int id = unwrap<int>(in[0]);
|
|
|
|
switch(id) {
|
|
case 0:
|
|
Point2_constructor_0(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 1:
|
|
Point2_constructor_1(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 2:
|
|
Point2_constructor_2(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 3:
|
|
Point2_deconstructor_3(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 4:
|
|
Point2_argChar_4(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 5:
|
|
Point2_argUChar_5(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 6:
|
|
Point2_dim_6(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 7:
|
|
Point2_returnChar_7(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 8:
|
|
Point2_vectorConfusion_8(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 9:
|
|
Point2_x_9(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 10:
|
|
Point2_y_10(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 11:
|
|
Point3_constructor_11(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 12:
|
|
Point3_constructor_12(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 13:
|
|
Point3_deconstructor_13(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 14:
|
|
Point3_norm_14(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 15:
|
|
Point3_StaticFunctionRet_15(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 16:
|
|
Point3_staticFunction_16(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 17:
|
|
Test_constructor_17(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 18:
|
|
Test_constructor_18(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 19:
|
|
Test_constructor_19(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 20:
|
|
Test_deconstructor_20(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 21:
|
|
Test_arg_EigenConstRef_21(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 22:
|
|
Test_create_MixedPtrs_22(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 23:
|
|
Test_create_ptrs_23(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 24:
|
|
Test_print_24(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 25:
|
|
Test_return_Point2Ptr_25(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 26:
|
|
Test_return_Test_26(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 27:
|
|
Test_return_TestPtr_27(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 28:
|
|
Test_return_bool_28(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 29:
|
|
Test_return_double_29(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 30:
|
|
Test_return_field_30(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 31:
|
|
Test_return_int_31(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 32:
|
|
Test_return_matrix1_32(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 33:
|
|
Test_return_matrix2_33(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 34:
|
|
Test_return_pair_34(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 35:
|
|
Test_return_ptrs_35(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 36:
|
|
Test_return_size_t_36(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 37:
|
|
Test_return_string_37(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 38:
|
|
Test_return_vector1_38(nargout, out, nargin-1, in+1);
|
|
break;
|
|
case 39:
|
|
Test_return_vector2_39(nargout, out, nargin-1, in+1);
|
|
break;
|
|
}
|
|
|
|
std::cout.rdbuf(outbuf);
|
|
}
|