class_wrapper.cpp
Go to the documentation of this file.
1 #include <gtwrap/matlab.h>
2 #include <map>
3 
4 #include <folder/path/to/Test.h>
5 
6 typedef Fun<double> FunDouble;
7 typedef PrimitiveRef<double> PrimitiveRefDouble;
8 typedef MyVector<3> MyVector3;
9 typedef MyVector<12> MyVector12;
10 typedef MultipleTemplates<int, double> MultipleTemplatesIntDouble;
11 typedef MultipleTemplates<int, float> MultipleTemplatesIntFloat;
13 
14 typedef std::set<std::shared_ptr<FunRange>*> Collector_FunRange;
16 typedef std::set<std::shared_ptr<FunDouble>*> Collector_FunDouble;
18 typedef std::set<std::shared_ptr<Test>*> Collector_Test;
20 typedef std::set<std::shared_ptr<PrimitiveRefDouble>*> Collector_PrimitiveRefDouble;
22 typedef std::set<std::shared_ptr<MyVector3>*> Collector_MyVector3;
24 typedef std::set<std::shared_ptr<MyVector12>*> Collector_MyVector12;
26 typedef std::set<std::shared_ptr<MultipleTemplatesIntDouble>*> Collector_MultipleTemplatesIntDouble;
28 typedef std::set<std::shared_ptr<MultipleTemplatesIntFloat>*> Collector_MultipleTemplatesIntFloat;
30 typedef std::set<std::shared_ptr<ForwardKinematics>*> Collector_ForwardKinematics;
32 typedef std::set<std::shared_ptr<TemplatedConstructor>*> Collector_TemplatedConstructor;
34 typedef std::set<std::shared_ptr<FastSet>*> Collector_FastSet;
36 typedef std::set<std::shared_ptr<HessianFactor>*> Collector_HessianFactor;
38 typedef std::set<std::shared_ptr<MyFactorPosePoint2>*> Collector_MyFactorPosePoint2;
40 
41 
43 {
44  mstream mout;
45  std::streambuf *outbuf = std::cout.rdbuf(&mout);
46 
47  bool anyDeleted = false;
48  { for(Collector_FunRange::iterator iter = collector_FunRange.begin();
49  iter != collector_FunRange.end(); ) {
50  delete *iter;
51  collector_FunRange.erase(iter++);
52  anyDeleted = true;
53  } }
54  { for(Collector_FunDouble::iterator iter = collector_FunDouble.begin();
55  iter != collector_FunDouble.end(); ) {
56  delete *iter;
57  collector_FunDouble.erase(iter++);
58  anyDeleted = true;
59  } }
60  { for(Collector_Test::iterator iter = collector_Test.begin();
61  iter != collector_Test.end(); ) {
62  delete *iter;
63  collector_Test.erase(iter++);
64  anyDeleted = true;
65  } }
66  { for(Collector_PrimitiveRefDouble::iterator iter = collector_PrimitiveRefDouble.begin();
68  delete *iter;
70  anyDeleted = true;
71  } }
72  { for(Collector_MyVector3::iterator iter = collector_MyVector3.begin();
73  iter != collector_MyVector3.end(); ) {
74  delete *iter;
75  collector_MyVector3.erase(iter++);
76  anyDeleted = true;
77  } }
78  { for(Collector_MyVector12::iterator iter = collector_MyVector12.begin();
79  iter != collector_MyVector12.end(); ) {
80  delete *iter;
81  collector_MyVector12.erase(iter++);
82  anyDeleted = true;
83  } }
84  { for(Collector_MultipleTemplatesIntDouble::iterator iter = collector_MultipleTemplatesIntDouble.begin();
86  delete *iter;
88  anyDeleted = true;
89  } }
90  { for(Collector_MultipleTemplatesIntFloat::iterator iter = collector_MultipleTemplatesIntFloat.begin();
92  delete *iter;
94  anyDeleted = true;
95  } }
96  { for(Collector_ForwardKinematics::iterator iter = collector_ForwardKinematics.begin();
97  iter != collector_ForwardKinematics.end(); ) {
98  delete *iter;
100  anyDeleted = true;
101  } }
102  { for(Collector_TemplatedConstructor::iterator iter = collector_TemplatedConstructor.begin();
104  delete *iter;
106  anyDeleted = true;
107  } }
108  { for(Collector_FastSet::iterator iter = collector_FastSet.begin();
109  iter != collector_FastSet.end(); ) {
110  delete *iter;
111  collector_FastSet.erase(iter++);
112  anyDeleted = true;
113  } }
114  { for(Collector_HessianFactor::iterator iter = collector_HessianFactor.begin();
115  iter != collector_HessianFactor.end(); ) {
116  delete *iter;
117  collector_HessianFactor.erase(iter++);
118  anyDeleted = true;
119  } }
120  { for(Collector_MyFactorPosePoint2::iterator iter = collector_MyFactorPosePoint2.begin();
121  iter != collector_MyFactorPosePoint2.end(); ) {
122  delete *iter;
124  anyDeleted = true;
125  } }
126 
127  if(anyDeleted)
128  cout <<
129  "WARNING: Wrap modules with variables in the workspace have been reloaded due to\n"
130  "calling destructors, call 'clear all' again if you plan to now recompile a wrap\n"
131  "module, so that your recompiled module is used instead of the old one." << endl;
132  std::cout.rdbuf(outbuf);
133 }
134 
136  const mxArray *alreadyCreated = mexGetVariablePtr("global", "gtsam_class_rttiRegistry_created");
137  if(!alreadyCreated) {
138  std::map<std::string, std::string> types;
139 
140  types.insert(std::make_pair(typeid(HessianFactor).name(), "HessianFactor"));
141 
142 
143  mxArray *registry = mexGetVariable("global", "gtsamwrap_rttiRegistry");
144  if(!registry)
145  registry = mxCreateStructMatrix(1, 1, 0, NULL);
146  typedef std::pair<std::string, std::string> StringPair;
147  for(const StringPair& rtti_matlab: types) {
148  int fieldId = mxAddField(registry, rtti_matlab.first.c_str());
149  if(fieldId < 0) {
150  mexErrMsgTxt("gtsam wrap: Error indexing RTTI types, inheritance will not work correctly");
151  }
152  mxArray *matlabName = mxCreateString(rtti_matlab.second.c_str());
153  mxSetFieldByNumber(registry, 0, fieldId, matlabName);
154  }
155  if(mexPutVariable("global", "gtsamwrap_rttiRegistry", registry) != 0) {
156  mexErrMsgTxt("gtsam wrap: Error indexing RTTI types, inheritance will not work correctly");
157  }
158  mxDestroyArray(registry);
159 
160  mxArray *newAlreadyCreated = mxCreateNumericMatrix(0, 0, mxINT8_CLASS, mxREAL);
161  if(mexPutVariable("global", "gtsam_class_rttiRegistry_created", newAlreadyCreated) != 0) {
162  mexErrMsgTxt("gtsam wrap: Error indexing RTTI types, inheritance will not work correctly");
163  }
164  mxDestroyArray(newAlreadyCreated);
165  }
166 }
167 
168 void FunRange_collectorInsertAndMakeBase_0(int nargout, mxArray *out[], int nargin, const mxArray *in[])
169 {
170  mexAtExit(&_deleteAllObjects);
171  typedef std::shared_ptr<FunRange> Shared;
172 
173  Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0]));
174  collector_FunRange.insert(self);
175 }
176 
177 void FunRange_constructor_1(int nargout, mxArray *out[], int nargin, const mxArray *in[])
178 {
179  mexAtExit(&_deleteAllObjects);
180  typedef std::shared_ptr<FunRange> Shared;
181 
182  Shared *self = new Shared(new FunRange());
183  collector_FunRange.insert(self);
184  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
185  *reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
186 }
187 
188 void FunRange_deconstructor_2(int nargout, mxArray *out[], int nargin, const mxArray *in[])
189 {
190  typedef std::shared_ptr<FunRange> Shared;
191  checkArguments("delete_FunRange",nargout,nargin,1);
192  Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0]));
193  Collector_FunRange::iterator item;
194  item = collector_FunRange.find(self);
195  if(item != collector_FunRange.end()) {
196  collector_FunRange.erase(item);
197  }
198  delete self;
199 }
200 
201 void FunRange_range_3(int nargout, mxArray *out[], int nargin, const mxArray *in[])
202 {
203  checkArguments("range",nargout,nargin-1,1);
204  auto obj = unwrap_shared_ptr<FunRange>(in[0], "ptr_FunRange");
205  double d = unwrap< double >(in[1]);
206  out[0] = wrap_shared_ptr(std::make_shared<FunRange>(obj->range(d)),"FunRange", false);
207 }
208 
209 void FunRange_create_4(int nargout, mxArray *out[], int nargin, const mxArray *in[])
210 {
211  checkArguments("FunRange.create",nargout,nargin,0);
212  out[0] = wrap_shared_ptr(std::make_shared<FunRange>(FunRange::create()),"FunRange", false);
213 }
214 
215 void FunDouble_collectorInsertAndMakeBase_5(int nargout, mxArray *out[], int nargin, const mxArray *in[])
216 {
217  mexAtExit(&_deleteAllObjects);
218  typedef std::shared_ptr<Fun<double>> Shared;
219 
220  Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0]));
221  collector_FunDouble.insert(self);
222 }
223 
224 void FunDouble_deconstructor_6(int nargout, mxArray *out[], int nargin, const mxArray *in[])
225 {
226  typedef std::shared_ptr<Fun<double>> Shared;
227  checkArguments("delete_FunDouble",nargout,nargin,1);
228  Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0]));
229  Collector_FunDouble::iterator item;
230  item = collector_FunDouble.find(self);
231  if(item != collector_FunDouble.end()) {
232  collector_FunDouble.erase(item);
233  }
234  delete self;
235 }
236 
237 void FunDouble_multiTemplatedMethod_7(int nargout, mxArray *out[], int nargin, const mxArray *in[])
238 {
239  checkArguments("multiTemplatedMethodStringSize_t",nargout,nargin-1,3);
240  auto obj = unwrap_shared_ptr<Fun<double>>(in[0], "ptr_FunDouble");
241  double d = unwrap< double >(in[1]);
242  string t = unwrap< string >(in[2]);
243  size_t u = unwrap< size_t >(in[3]);
244  out[0] = wrap_shared_ptr(std::make_shared<Fun<double>>(obj->multiTemplatedMethod<string,size_t>(d,t,u)),"Fun<double>", false);
245 }
246 
247 void FunDouble_sets_8(int nargout, mxArray *out[], int nargin, const mxArray *in[])
248 {
249  checkArguments("sets",nargout,nargin-1,0);
250  auto obj = unwrap_shared_ptr<Fun<double>>(in[0], "ptr_FunDouble");
251  out[0] = wrap_shared_ptr(std::make_shared<std::map<double,Fun<double>::double>>(obj->sets()),"std.mapdoubledouble", false);
252 }
253 
254 void FunDouble_templatedMethod_9(int nargout, mxArray *out[], int nargin, const mxArray *in[])
255 {
256  checkArguments("templatedMethodString",nargout,nargin-1,2);
257  auto obj = unwrap_shared_ptr<Fun<double>>(in[0], "ptr_FunDouble");
258  double d = unwrap< double >(in[1]);
259  string t = unwrap< string >(in[2]);
260  out[0] = wrap_shared_ptr(std::make_shared<Fun<double>>(obj->templatedMethod<string>(d,t)),"Fun<double>", false);
261 }
262 
263 void FunDouble_staticMethodWithThis_10(int nargout, mxArray *out[], int nargin, const mxArray *in[])
264 {
265  checkArguments("Fun<double>.staticMethodWithThis",nargout,nargin,0);
266  out[0] = wrap_shared_ptr(std::make_shared<Fun<double>>(Fun<double>::staticMethodWithThis()),"Fundouble", false);
267 }
268 
269 void FunDouble_templatedStaticMethodInt_11(int nargout, mxArray *out[], int nargin, const mxArray *in[])
270 {
271  checkArguments("Fun<double>.templatedStaticMethodInt",nargout,nargin,1);
272  int m = unwrap< int >(in[0]);
273  out[0] = wrap< double >(Fun<double>::templatedStaticMethod(m));
274 }
275 
276 void Test_collectorInsertAndMakeBase_12(int nargout, mxArray *out[], int nargin, const mxArray *in[])
277 {
278  mexAtExit(&_deleteAllObjects);
279  typedef std::shared_ptr<Test> Shared;
280 
281  Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0]));
282  collector_Test.insert(self);
283 }
284 
285 void Test_constructor_13(int nargout, mxArray *out[], int nargin, const mxArray *in[])
286 {
287  mexAtExit(&_deleteAllObjects);
288  typedef std::shared_ptr<Test> Shared;
289 
290  Shared *self = new Shared(new Test());
291  collector_Test.insert(self);
292  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
293  *reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
294 }
295 
296 void Test_constructor_14(int nargout, mxArray *out[], int nargin, const mxArray *in[])
297 {
298  mexAtExit(&_deleteAllObjects);
299  typedef std::shared_ptr<Test> Shared;
300 
301  double a = unwrap< double >(in[0]);
302  Matrix b = unwrap< Matrix >(in[1]);
303  Shared *self = new Shared(new Test(a,b));
304  collector_Test.insert(self);
305  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
306  *reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
307 }
308 
309 void Test_deconstructor_15(int nargout, mxArray *out[], int nargin, const mxArray *in[])
310 {
311  typedef std::shared_ptr<Test> Shared;
312  checkArguments("delete_Test",nargout,nargin,1);
313  Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0]));
314  Collector_Test::iterator item;
315  item = collector_Test.find(self);
316  if(item != collector_Test.end()) {
317  collector_Test.erase(item);
318  }
319  delete self;
320 }
321 
322 void Test_arg_EigenConstRef_16(int nargout, mxArray *out[], int nargin, const mxArray *in[])
323 {
324  checkArguments("arg_EigenConstRef",nargout,nargin-1,1);
325  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
326  Matrix value = unwrap< Matrix >(in[1]);
327  obj->arg_EigenConstRef(value);
328 }
329 
330 void Test_create_MixedPtrs_17(int nargout, mxArray *out[], int nargin, const mxArray *in[])
331 {
332  checkArguments("create_MixedPtrs",nargout,nargin-1,0);
333  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
334  auto pairResult = obj->create_MixedPtrs();
335  out[0] = wrap_shared_ptr(std::make_shared<Test>(pairResult.first),"Test", false);
336  out[1] = wrap_shared_ptr(pairResult.second,"Test", false);
337 }
338 
339 void Test_create_ptrs_18(int nargout, mxArray *out[], int nargin, const mxArray *in[])
340 {
341  checkArguments("create_ptrs",nargout,nargin-1,0);
342  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
343  auto pairResult = obj->create_ptrs();
344  out[0] = wrap_shared_ptr(pairResult.first,"Test", false);
345  out[1] = wrap_shared_ptr(pairResult.second,"Test", false);
346 }
347 
348 void Test_get_container_19(int nargout, mxArray *out[], int nargin, const mxArray *in[])
349 {
350  checkArguments("get_container",nargout,nargin-1,0);
351  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
352  out[0] = wrap_shared_ptr(std::make_shared<std::vector<testing::Test>>(obj->get_container()),"std.vectorTest", false);
353 }
354 
355 void Test_lambda_20(int nargout, mxArray *out[], int nargin, const mxArray *in[])
356 {
357  checkArguments("lambda",nargout,nargin-1,0);
358  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
359  obj->lambda();
360 }
361 
362 void Test_markdown_21(int nargout, mxArray *out[], int nargin, const mxArray *in[])
363 {
364  checkArguments("markdown",nargout,nargin-1,1);
365  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
366  gtsam::KeyFormatter& keyFormatter = *unwrap_shared_ptr< gtsam::KeyFormatter >(in[1], "ptr_gtsamKeyFormatter");
367  out[0] = wrap< string >(obj->markdown(keyFormatter));
368 }
369 
370 void Test_markdown_22(int nargout, mxArray *out[], int nargin, const mxArray *in[])
371 {
372  checkArguments("markdown",nargout,nargin-1,0);
373  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
374  out[0] = wrap< string >(obj->markdown(gtsam::DefaultKeyFormatter));
375 }
376 
377 void Test_print_23(int nargout, mxArray *out[], int nargin, const mxArray *in[])
378 {
379  checkArguments("print",nargout,nargin-1,0);
380  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
381  obj->print();
382 }
383 
384 void Test_return_Point2Ptr_24(int nargout, mxArray *out[], int nargin, const mxArray *in[])
385 {
386  checkArguments("return_Point2Ptr",nargout,nargin-1,1);
387  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
388  bool value = unwrap< bool >(in[1]);
389  {
390  std::shared_ptr<Point2> shared(obj->return_Point2Ptr(value));
391  out[0] = wrap_shared_ptr(shared,"Point2");
392  }
393 }
394 
395 void Test_return_Test_25(int nargout, mxArray *out[], int nargin, const mxArray *in[])
396 {
397  checkArguments("return_Test",nargout,nargin-1,1);
398  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
399  std::shared_ptr<Test> value = unwrap_shared_ptr< Test >(in[1], "ptr_Test");
400  out[0] = wrap_shared_ptr(std::make_shared<Test>(obj->return_Test(value)),"Test", false);
401 }
402 
403 void Test_return_TestPtr_26(int nargout, mxArray *out[], int nargin, const mxArray *in[])
404 {
405  checkArguments("return_TestPtr",nargout,nargin-1,1);
406  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
407  std::shared_ptr<Test> value = unwrap_shared_ptr< Test >(in[1], "ptr_Test");
408  out[0] = wrap_shared_ptr(obj->return_TestPtr(value),"Test", false);
409 }
410 
411 void Test_return_bool_27(int nargout, mxArray *out[], int nargin, const mxArray *in[])
412 {
413  checkArguments("return_bool",nargout,nargin-1,1);
414  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
415  bool value = unwrap< bool >(in[1]);
416  out[0] = wrap< bool >(obj->return_bool(value));
417 }
418 
419 void Test_return_double_28(int nargout, mxArray *out[], int nargin, const mxArray *in[])
420 {
421  checkArguments("return_double",nargout,nargin-1,1);
422  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
423  double value = unwrap< double >(in[1]);
424  out[0] = wrap< double >(obj->return_double(value));
425 }
426 
427 void Test_return_field_29(int nargout, mxArray *out[], int nargin, const mxArray *in[])
428 {
429  checkArguments("return_field",nargout,nargin-1,1);
430  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
431  Test& t = *unwrap_shared_ptr< Test >(in[1], "ptr_Test");
432  out[0] = wrap< bool >(obj->return_field(t));
433 }
434 
435 void Test_return_int_30(int nargout, mxArray *out[], int nargin, const mxArray *in[])
436 {
437  checkArguments("return_int",nargout,nargin-1,1);
438  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
439  int value = unwrap< int >(in[1]);
440  out[0] = wrap< int >(obj->return_int(value));
441 }
442 
443 void Test_return_matrix1_31(int nargout, mxArray *out[], int nargin, const mxArray *in[])
444 {
445  checkArguments("return_matrix1",nargout,nargin-1,1);
446  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
447  Matrix value = unwrap< Matrix >(in[1]);
448  out[0] = wrap< Matrix >(obj->return_matrix1(value));
449 }
450 
451 void Test_return_matrix2_32(int nargout, mxArray *out[], int nargin, const mxArray *in[])
452 {
453  checkArguments("return_matrix2",nargout,nargin-1,1);
454  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
455  Matrix value = unwrap< Matrix >(in[1]);
456  out[0] = wrap< Matrix >(obj->return_matrix2(value));
457 }
458 
459 void Test_return_pair_33(int nargout, mxArray *out[], int nargin, const mxArray *in[])
460 {
461  checkArguments("return_pair",nargout,nargin-1,2);
462  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
463  Vector v = unwrap< Vector >(in[1]);
464  Matrix A = unwrap< Matrix >(in[2]);
465  auto pairResult = obj->return_pair(v,A);
466  out[0] = wrap< Vector >(pairResult.first);
467  out[1] = wrap< Matrix >(pairResult.second);
468 }
469 
470 void Test_return_pair_34(int nargout, mxArray *out[], int nargin, const mxArray *in[])
471 {
472  checkArguments("return_pair",nargout,nargin-1,1);
473  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
474  Vector v = unwrap< Vector >(in[1]);
475  auto pairResult = obj->return_pair(v);
476  out[0] = wrap< Vector >(pairResult.first);
477  out[1] = wrap< Matrix >(pairResult.second);
478 }
479 
480 void Test_return_ptrs_35(int nargout, mxArray *out[], int nargin, const mxArray *in[])
481 {
482  checkArguments("return_ptrs",nargout,nargin-1,2);
483  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
484  std::shared_ptr<Test> p1 = unwrap_shared_ptr< Test >(in[1], "ptr_Test");
485  std::shared_ptr<Test> p2 = unwrap_shared_ptr< Test >(in[2], "ptr_Test");
486  auto pairResult = obj->return_ptrs(p1,p2);
487  out[0] = wrap_shared_ptr(pairResult.first,"Test", false);
488  out[1] = wrap_shared_ptr(pairResult.second,"Test", false);
489 }
490 
491 void Test_return_size_t_36(int nargout, mxArray *out[], int nargin, const mxArray *in[])
492 {
493  checkArguments("return_size_t",nargout,nargin-1,1);
494  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
495  size_t value = unwrap< size_t >(in[1]);
496  out[0] = wrap< size_t >(obj->return_size_t(value));
497 }
498 
499 void Test_return_string_37(int nargout, mxArray *out[], int nargin, const mxArray *in[])
500 {
501  checkArguments("return_string",nargout,nargin-1,1);
502  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
503  string value = unwrap< string >(in[1]);
504  out[0] = wrap< string >(obj->return_string(value));
505 }
506 
507 void Test_return_vector1_38(int nargout, mxArray *out[], int nargin, const mxArray *in[])
508 {
509  checkArguments("return_vector1",nargout,nargin-1,1);
510  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
511  Vector value = unwrap< Vector >(in[1]);
512  out[0] = wrap< Vector >(obj->return_vector1(value));
513 }
514 
515 void Test_return_vector2_39(int nargout, mxArray *out[], int nargin, const mxArray *in[])
516 {
517  checkArguments("return_vector2",nargout,nargin-1,1);
518  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
519  Vector value = unwrap< Vector >(in[1]);
520  out[0] = wrap< Vector >(obj->return_vector2(value));
521 }
522 
523 void Test_set_container_40(int nargout, mxArray *out[], int nargin, const mxArray *in[])
524 {
525  checkArguments("set_container",nargout,nargin-1,1);
526  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
527  std::shared_ptr<std::vector<testing::Test>> container = unwrap_shared_ptr< std::vector<testing::Test> >(in[1], "ptr_stdvectorTest");
528  obj->set_container(*container);
529 }
530 
531 void Test_set_container_41(int nargout, mxArray *out[], int nargin, const mxArray *in[])
532 {
533  checkArguments("set_container",nargout,nargin-1,1);
534  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
535  std::shared_ptr<std::vector<testing::Test>> container = unwrap_shared_ptr< std::vector<testing::Test> >(in[1], "ptr_stdvectorTest");
536  obj->set_container(*container);
537 }
538 
539 void Test_set_container_42(int nargout, mxArray *out[], int nargin, const mxArray *in[])
540 {
541  checkArguments("set_container",nargout,nargin-1,1);
542  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
543  std::shared_ptr<std::vector<testing::Test>> container = unwrap_shared_ptr< std::vector<testing::Test> >(in[1], "ptr_stdvectorTest");
544  obj->set_container(*container);
545 }
546 
547 void Test_get_model_ptr_43(int nargout, mxArray *out[], int nargin, const mxArray *in[])
548 {
549  checkArguments("model_ptr",nargout,nargin-1,0);
550  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
551  out[0] = wrap_shared_ptr(obj->model_ptr,"gtsam.noiseModel.Base", false);
552 }
553 
554 void Test_set_model_ptr_44(int nargout, mxArray *out[], int nargin, const mxArray *in[])
555 {
556  checkArguments("model_ptr",nargout,nargin-1,1);
557  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
558  std::shared_ptr<gtsam::noiseModel::Base> model_ptr = unwrap_shared_ptr< gtsam::noiseModel::Base >(in[1], "ptr_gtsamnoiseModelBase");
559  obj->model_ptr = *model_ptr;
560 }
561 
562 void Test_get_value_45(int nargout, mxArray *out[], int nargin, const mxArray *in[])
563 {
564  checkArguments("value",nargout,nargin-1,0);
565  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
566  out[0] = wrap< double >(obj->value);
567 }
568 
569 void Test_set_value_46(int nargout, mxArray *out[], int nargin, const mxArray *in[])
570 {
571  checkArguments("value",nargout,nargin-1,1);
572  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
573  double value = unwrap< double >(in[1]);
574  obj->value = value;
575 }
576 
577 void Test_get_name_47(int nargout, mxArray *out[], int nargin, const mxArray *in[])
578 {
579  checkArguments("name",nargout,nargin-1,0);
580  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
581  out[0] = wrap< string >(obj->name);
582 }
583 
584 void Test_set_name_48(int nargout, mxArray *out[], int nargin, const mxArray *in[])
585 {
586  checkArguments("name",nargout,nargin-1,1);
587  auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test");
588  string name = unwrap< string >(in[1]);
589  obj->name = name;
590 }
591 
592 void PrimitiveRefDouble_collectorInsertAndMakeBase_49(int nargout, mxArray *out[], int nargin, const mxArray *in[])
593 {
594  mexAtExit(&_deleteAllObjects);
595  typedef std::shared_ptr<PrimitiveRef<double>> Shared;
596 
597  Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0]));
598  collector_PrimitiveRefDouble.insert(self);
599 }
600 
601 void PrimitiveRefDouble_constructor_50(int nargout, mxArray *out[], int nargin, const mxArray *in[])
602 {
603  mexAtExit(&_deleteAllObjects);
604  typedef std::shared_ptr<PrimitiveRef<double>> Shared;
605 
606  Shared *self = new Shared(new PrimitiveRef<double>());
607  collector_PrimitiveRefDouble.insert(self);
608  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
609  *reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
610 }
611 
612 void PrimitiveRefDouble_deconstructor_51(int nargout, mxArray *out[], int nargin, const mxArray *in[])
613 {
614  typedef std::shared_ptr<PrimitiveRef<double>> Shared;
615  checkArguments("delete_PrimitiveRefDouble",nargout,nargin,1);
616  Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0]));
617  Collector_PrimitiveRefDouble::iterator item;
618  item = collector_PrimitiveRefDouble.find(self);
619  if(item != collector_PrimitiveRefDouble.end()) {
620  collector_PrimitiveRefDouble.erase(item);
621  }
622  delete self;
623 }
624 
625 void PrimitiveRefDouble_Brutal_52(int nargout, mxArray *out[], int nargin, const mxArray *in[])
626 {
627  checkArguments("PrimitiveRef<double>.Brutal",nargout,nargin,1);
628  double t = unwrap< double >(in[0]);
629  out[0] = wrap_shared_ptr(std::make_shared<PrimitiveRef<double>>(PrimitiveRef<double>::Brutal(t)),"PrimitiveRefdouble", false);
630 }
631 
632 void MyVector3_collectorInsertAndMakeBase_53(int nargout, mxArray *out[], int nargin, const mxArray *in[])
633 {
634  mexAtExit(&_deleteAllObjects);
635  typedef std::shared_ptr<MyVector<3>> Shared;
636 
637  Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0]));
638  collector_MyVector3.insert(self);
639 }
640 
641 void MyVector3_constructor_54(int nargout, mxArray *out[], int nargin, const mxArray *in[])
642 {
643  mexAtExit(&_deleteAllObjects);
644  typedef std::shared_ptr<MyVector<3>> Shared;
645 
646  Shared *self = new Shared(new MyVector<3>());
647  collector_MyVector3.insert(self);
648  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
649  *reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
650 }
651 
652 void MyVector3_deconstructor_55(int nargout, mxArray *out[], int nargin, const mxArray *in[])
653 {
654  typedef std::shared_ptr<MyVector<3>> Shared;
655  checkArguments("delete_MyVector3",nargout,nargin,1);
656  Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0]));
657  Collector_MyVector3::iterator item;
658  item = collector_MyVector3.find(self);
659  if(item != collector_MyVector3.end()) {
660  collector_MyVector3.erase(item);
661  }
662  delete self;
663 }
664 
665 void MyVector12_collectorInsertAndMakeBase_56(int nargout, mxArray *out[], int nargin, const mxArray *in[])
666 {
667  mexAtExit(&_deleteAllObjects);
668  typedef std::shared_ptr<MyVector<12>> Shared;
669 
670  Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0]));
671  collector_MyVector12.insert(self);
672 }
673 
674 void MyVector12_constructor_57(int nargout, mxArray *out[], int nargin, const mxArray *in[])
675 {
676  mexAtExit(&_deleteAllObjects);
677  typedef std::shared_ptr<MyVector<12>> Shared;
678 
679  Shared *self = new Shared(new MyVector<12>());
680  collector_MyVector12.insert(self);
681  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
682  *reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
683 }
684 
685 void MyVector12_deconstructor_58(int nargout, mxArray *out[], int nargin, const mxArray *in[])
686 {
687  typedef std::shared_ptr<MyVector<12>> Shared;
688  checkArguments("delete_MyVector12",nargout,nargin,1);
689  Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0]));
690  Collector_MyVector12::iterator item;
691  item = collector_MyVector12.find(self);
692  if(item != collector_MyVector12.end()) {
693  collector_MyVector12.erase(item);
694  }
695  delete self;
696 }
697 
698 void MultipleTemplatesIntDouble_collectorInsertAndMakeBase_59(int nargout, mxArray *out[], int nargin, const mxArray *in[])
699 {
700  mexAtExit(&_deleteAllObjects);
701  typedef std::shared_ptr<MultipleTemplates<int, double>> Shared;
702 
703  Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0]));
705 }
706 
707 void MultipleTemplatesIntDouble_deconstructor_60(int nargout, mxArray *out[], int nargin, const mxArray *in[])
708 {
709  typedef std::shared_ptr<MultipleTemplates<int, double>> Shared;
710  checkArguments("delete_MultipleTemplatesIntDouble",nargout,nargin,1);
711  Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0]));
712  Collector_MultipleTemplatesIntDouble::iterator item;
713  item = collector_MultipleTemplatesIntDouble.find(self);
714  if(item != collector_MultipleTemplatesIntDouble.end()) {
716  }
717  delete self;
718 }
719 
720 void MultipleTemplatesIntFloat_collectorInsertAndMakeBase_61(int nargout, mxArray *out[], int nargin, const mxArray *in[])
721 {
722  mexAtExit(&_deleteAllObjects);
723  typedef std::shared_ptr<MultipleTemplates<int, float>> Shared;
724 
725  Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0]));
727 }
728 
729 void MultipleTemplatesIntFloat_deconstructor_62(int nargout, mxArray *out[], int nargin, const mxArray *in[])
730 {
731  typedef std::shared_ptr<MultipleTemplates<int, float>> Shared;
732  checkArguments("delete_MultipleTemplatesIntFloat",nargout,nargin,1);
733  Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0]));
734  Collector_MultipleTemplatesIntFloat::iterator item;
735  item = collector_MultipleTemplatesIntFloat.find(self);
736  if(item != collector_MultipleTemplatesIntFloat.end()) {
738  }
739  delete self;
740 }
741 
742 void ForwardKinematics_collectorInsertAndMakeBase_63(int nargout, mxArray *out[], int nargin, const mxArray *in[])
743 {
744  mexAtExit(&_deleteAllObjects);
745  typedef std::shared_ptr<ForwardKinematics> Shared;
746 
747  Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0]));
748  collector_ForwardKinematics.insert(self);
749 }
750 
751 void ForwardKinematics_constructor_64(int nargout, mxArray *out[], int nargin, const mxArray *in[])
752 {
753  mexAtExit(&_deleteAllObjects);
754  typedef std::shared_ptr<ForwardKinematics> Shared;
755 
756  gtdynamics::Robot& robot = *unwrap_shared_ptr< gtdynamics::Robot >(in[0], "ptr_gtdynamicsRobot");
757  string& start_link_name = *unwrap_shared_ptr< string >(in[1], "ptr_string");
758  string& end_link_name = *unwrap_shared_ptr< string >(in[2], "ptr_string");
759  gtsam::Values& joint_angles = *unwrap_shared_ptr< gtsam::Values >(in[3], "ptr_gtsamValues");
760  gtsam::Pose3& l2Tp = *unwrap_shared_ptr< gtsam::Pose3 >(in[4], "ptr_gtsamPose3");
761  Shared *self = new Shared(new ForwardKinematics(robot,start_link_name,end_link_name,joint_angles,l2Tp));
762  collector_ForwardKinematics.insert(self);
763  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
764  *reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
765 }
766 
767 void ForwardKinematics_constructor_65(int nargout, mxArray *out[], int nargin, const mxArray *in[])
768 {
769  mexAtExit(&_deleteAllObjects);
770  typedef std::shared_ptr<ForwardKinematics> Shared;
771 
772  gtdynamics::Robot& robot = *unwrap_shared_ptr< gtdynamics::Robot >(in[0], "ptr_gtdynamicsRobot");
773  string& start_link_name = *unwrap_shared_ptr< string >(in[1], "ptr_string");
774  string& end_link_name = *unwrap_shared_ptr< string >(in[2], "ptr_string");
775  gtsam::Values& joint_angles = *unwrap_shared_ptr< gtsam::Values >(in[3], "ptr_gtsamValues");
776  Shared *self = new Shared(new ForwardKinematics(robot,start_link_name,end_link_name,joint_angles,gtsam::Pose3()));
777  collector_ForwardKinematics.insert(self);
778  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
779  *reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
780 }
781 
782 void ForwardKinematics_deconstructor_66(int nargout, mxArray *out[], int nargin, const mxArray *in[])
783 {
784  typedef std::shared_ptr<ForwardKinematics> Shared;
785  checkArguments("delete_ForwardKinematics",nargout,nargin,1);
786  Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0]));
787  Collector_ForwardKinematics::iterator item;
788  item = collector_ForwardKinematics.find(self);
789  if(item != collector_ForwardKinematics.end()) {
790  collector_ForwardKinematics.erase(item);
791  }
792  delete self;
793 }
794 
795 void TemplatedConstructor_collectorInsertAndMakeBase_67(int nargout, mxArray *out[], int nargin, const mxArray *in[])
796 {
797  mexAtExit(&_deleteAllObjects);
798  typedef std::shared_ptr<TemplatedConstructor> Shared;
799 
800  Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0]));
801  collector_TemplatedConstructor.insert(self);
802 }
803 
804 void TemplatedConstructor_constructor_68(int nargout, mxArray *out[], int nargin, const mxArray *in[])
805 {
806  mexAtExit(&_deleteAllObjects);
807  typedef std::shared_ptr<TemplatedConstructor> Shared;
808 
809  Shared *self = new Shared(new TemplatedConstructor());
810  collector_TemplatedConstructor.insert(self);
811  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
812  *reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
813 }
814 
815 void TemplatedConstructor_constructor_69(int nargout, mxArray *out[], int nargin, const mxArray *in[])
816 {
817  mexAtExit(&_deleteAllObjects);
818  typedef std::shared_ptr<TemplatedConstructor> Shared;
819 
820  string& arg = *unwrap_shared_ptr< string >(in[0], "ptr_string");
821  Shared *self = new Shared(new TemplatedConstructor(arg));
822  collector_TemplatedConstructor.insert(self);
823  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
824  *reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
825 }
826 
827 void TemplatedConstructor_constructor_70(int nargout, mxArray *out[], int nargin, const mxArray *in[])
828 {
829  mexAtExit(&_deleteAllObjects);
830  typedef std::shared_ptr<TemplatedConstructor> Shared;
831 
832  int arg = unwrap< int >(in[0]);
833  Shared *self = new Shared(new TemplatedConstructor(arg));
834  collector_TemplatedConstructor.insert(self);
835  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
836  *reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
837 }
838 
839 void TemplatedConstructor_constructor_71(int nargout, mxArray *out[], int nargin, const mxArray *in[])
840 {
841  mexAtExit(&_deleteAllObjects);
842  typedef std::shared_ptr<TemplatedConstructor> Shared;
843 
844  double arg = unwrap< double >(in[0]);
845  Shared *self = new Shared(new TemplatedConstructor(arg));
846  collector_TemplatedConstructor.insert(self);
847  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
848  *reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
849 }
850 
851 void TemplatedConstructor_deconstructor_72(int nargout, mxArray *out[], int nargin, const mxArray *in[])
852 {
853  typedef std::shared_ptr<TemplatedConstructor> Shared;
854  checkArguments("delete_TemplatedConstructor",nargout,nargin,1);
855  Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0]));
856  Collector_TemplatedConstructor::iterator item;
857  item = collector_TemplatedConstructor.find(self);
858  if(item != collector_TemplatedConstructor.end()) {
859  collector_TemplatedConstructor.erase(item);
860  }
861  delete self;
862 }
863 
864 void FastSet_collectorInsertAndMakeBase_73(int nargout, mxArray *out[], int nargin, const mxArray *in[])
865 {
866  mexAtExit(&_deleteAllObjects);
867  typedef std::shared_ptr<FastSet> Shared;
868 
869  Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0]));
870  collector_FastSet.insert(self);
871 }
872 
873 void FastSet_constructor_74(int nargout, mxArray *out[], int nargin, const mxArray *in[])
874 {
875  mexAtExit(&_deleteAllObjects);
876  typedef std::shared_ptr<FastSet> Shared;
877 
878  Shared *self = new Shared(new FastSet());
879  collector_FastSet.insert(self);
880  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
881  *reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
882 }
883 
884 void FastSet_deconstructor_75(int nargout, mxArray *out[], int nargin, const mxArray *in[])
885 {
886  typedef std::shared_ptr<FastSet> Shared;
887  checkArguments("delete_FastSet",nargout,nargin,1);
888  Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0]));
889  Collector_FastSet::iterator item;
890  item = collector_FastSet.find(self);
891  if(item != collector_FastSet.end()) {
892  collector_FastSet.erase(item);
893  }
894  delete self;
895 }
896 
897 void HessianFactor_collectorInsertAndMakeBase_76(int nargout, mxArray *out[], int nargin, const mxArray *in[])
898 {
899  mexAtExit(&_deleteAllObjects);
900  typedef std::shared_ptr<HessianFactor> Shared;
901 
902  Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0]));
903  collector_HessianFactor.insert(self);
904 
905  typedef std::shared_ptr<gtsam::GaussianFactor> SharedBase;
906  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
907  *reinterpret_cast<SharedBase**>(mxGetData(out[0])) = new SharedBase(*self);
908 }
909 
910 void HessianFactor_upcastFromVoid_77(int nargout, mxArray *out[], int nargin, const mxArray *in[]) {
911  mexAtExit(&_deleteAllObjects);
912  typedef std::shared_ptr<HessianFactor> Shared;
913  std::shared_ptr<void> *asVoid = *reinterpret_cast<std::shared_ptr<void>**> (mxGetData(in[0]));
914  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
915  Shared *self = new Shared(std::static_pointer_cast<HessianFactor>(*asVoid));
916  *reinterpret_cast<Shared**>(mxGetData(out[0])) = self;
917 }
918 
919 void HessianFactor_constructor_78(int nargout, mxArray *out[], int nargin, const mxArray *in[])
920 {
921  mexAtExit(&_deleteAllObjects);
922  typedef std::shared_ptr<HessianFactor> Shared;
923 
924  gtsam::KeyVector& js = *unwrap_shared_ptr< gtsam::KeyVector >(in[0], "ptr_gtsamKeyVector");
925  std::vector<Matrix>& Gs = *unwrap_shared_ptr< std::vector<Matrix> >(in[1], "ptr_stdvectorMatrix");
926  std::vector<Vector>& gs = *unwrap_shared_ptr< std::vector<Vector> >(in[2], "ptr_stdvectorVector");
927  double f = unwrap< double >(in[3]);
928  Shared *self = new Shared(new HessianFactor(js,Gs,gs,f));
929  collector_HessianFactor.insert(self);
930  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
931  *reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
932 
933  typedef std::shared_ptr<gtsam::GaussianFactor> SharedBase;
934  out[1] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
935  *reinterpret_cast<SharedBase**>(mxGetData(out[1])) = new SharedBase(*self);
936 }
937 
938 void HessianFactor_deconstructor_79(int nargout, mxArray *out[], int nargin, const mxArray *in[])
939 {
940  typedef std::shared_ptr<HessianFactor> Shared;
941  checkArguments("delete_HessianFactor",nargout,nargin,1);
942  Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0]));
943  Collector_HessianFactor::iterator item;
944  item = collector_HessianFactor.find(self);
945  if(item != collector_HessianFactor.end()) {
946  collector_HessianFactor.erase(item);
947  }
948  delete self;
949 }
950 
951 void MyFactorPosePoint2_collectorInsertAndMakeBase_80(int nargout, mxArray *out[], int nargin, const mxArray *in[])
952 {
953  mexAtExit(&_deleteAllObjects);
954  typedef std::shared_ptr<MyFactor<gtsam::Pose2, gtsam::Matrix>> Shared;
955 
956  Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0]));
957  collector_MyFactorPosePoint2.insert(self);
958 }
959 
960 void MyFactorPosePoint2_constructor_81(int nargout, mxArray *out[], int nargin, const mxArray *in[])
961 {
962  mexAtExit(&_deleteAllObjects);
963  typedef std::shared_ptr<MyFactor<gtsam::Pose2, gtsam::Matrix>> Shared;
964 
965  size_t key1 = unwrap< size_t >(in[0]);
966  size_t key2 = unwrap< size_t >(in[1]);
967  double measured = unwrap< double >(in[2]);
968  std::shared_ptr<gtsam::noiseModel::Base> noiseModel = unwrap_shared_ptr< gtsam::noiseModel::Base >(in[3], "ptr_gtsamnoiseModelBase");
969  Shared *self = new Shared(new MyFactor<gtsam::Pose2, gtsam::Matrix>(key1,key2,measured,noiseModel));
970  collector_MyFactorPosePoint2.insert(self);
971  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
972  *reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
973 }
974 
975 void MyFactorPosePoint2_deconstructor_82(int nargout, mxArray *out[], int nargin, const mxArray *in[])
976 {
977  typedef std::shared_ptr<MyFactor<gtsam::Pose2, gtsam::Matrix>> Shared;
978  checkArguments("delete_MyFactorPosePoint2",nargout,nargin,1);
979  Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0]));
980  Collector_MyFactorPosePoint2::iterator item;
981  item = collector_MyFactorPosePoint2.find(self);
982  if(item != collector_MyFactorPosePoint2.end()) {
983  collector_MyFactorPosePoint2.erase(item);
984  }
985  delete self;
986 }
987 
988 void MyFactorPosePoint2_print_83(int nargout, mxArray *out[], int nargin, const mxArray *in[])
989 {
990  checkArguments("print",nargout,nargin-1,2);
991  auto obj = unwrap_shared_ptr<MyFactor<gtsam::Pose2, gtsam::Matrix>>(in[0], "ptr_MyFactorPosePoint2");
992  string& s = *unwrap_shared_ptr< string >(in[1], "ptr_string");
993  gtsam::KeyFormatter& keyFormatter = *unwrap_shared_ptr< gtsam::KeyFormatter >(in[2], "ptr_gtsamKeyFormatter");
994  obj->print(s,keyFormatter);
995 }
996 
997 void MyFactorPosePoint2_print_84(int nargout, mxArray *out[], int nargin, const mxArray *in[])
998 {
999  checkArguments("print",nargout,nargin-1,1);
1000  auto obj = unwrap_shared_ptr<MyFactor<gtsam::Pose2, gtsam::Matrix>>(in[0], "ptr_MyFactorPosePoint2");
1001  string& s = *unwrap_shared_ptr< string >(in[1], "ptr_string");
1002  obj->print(s,gtsam::DefaultKeyFormatter);
1003 }
1004 
1005 void MyFactorPosePoint2_print_85(int nargout, mxArray *out[], int nargin, const mxArray *in[])
1006 {
1007  checkArguments("print",nargout,nargin-1,0);
1008  auto obj = unwrap_shared_ptr<MyFactor<gtsam::Pose2, gtsam::Matrix>>(in[0], "ptr_MyFactorPosePoint2");
1009  obj->print("factor: ",gtsam::DefaultKeyFormatter);
1010 }
1011 
1012 
1013 void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
1014 {
1015  mstream mout;
1016  std::streambuf *outbuf = std::cout.rdbuf(&mout);
1017 
1019 
1020  int id = unwrap<int>(in[0]);
1021 
1022  try {
1023  switch(id) {
1024  case 0:
1025  FunRange_collectorInsertAndMakeBase_0(nargout, out, nargin-1, in+1);
1026  break;
1027  case 1:
1028  FunRange_constructor_1(nargout, out, nargin-1, in+1);
1029  break;
1030  case 2:
1031  FunRange_deconstructor_2(nargout, out, nargin-1, in+1);
1032  break;
1033  case 3:
1034  FunRange_range_3(nargout, out, nargin-1, in+1);
1035  break;
1036  case 4:
1037  FunRange_create_4(nargout, out, nargin-1, in+1);
1038  break;
1039  case 5:
1040  FunDouble_collectorInsertAndMakeBase_5(nargout, out, nargin-1, in+1);
1041  break;
1042  case 6:
1043  FunDouble_deconstructor_6(nargout, out, nargin-1, in+1);
1044  break;
1045  case 7:
1046  FunDouble_multiTemplatedMethod_7(nargout, out, nargin-1, in+1);
1047  break;
1048  case 8:
1049  FunDouble_sets_8(nargout, out, nargin-1, in+1);
1050  break;
1051  case 9:
1052  FunDouble_templatedMethod_9(nargout, out, nargin-1, in+1);
1053  break;
1054  case 10:
1055  FunDouble_staticMethodWithThis_10(nargout, out, nargin-1, in+1);
1056  break;
1057  case 11:
1058  FunDouble_templatedStaticMethodInt_11(nargout, out, nargin-1, in+1);
1059  break;
1060  case 12:
1061  Test_collectorInsertAndMakeBase_12(nargout, out, nargin-1, in+1);
1062  break;
1063  case 13:
1064  Test_constructor_13(nargout, out, nargin-1, in+1);
1065  break;
1066  case 14:
1067  Test_constructor_14(nargout, out, nargin-1, in+1);
1068  break;
1069  case 15:
1070  Test_deconstructor_15(nargout, out, nargin-1, in+1);
1071  break;
1072  case 16:
1073  Test_arg_EigenConstRef_16(nargout, out, nargin-1, in+1);
1074  break;
1075  case 17:
1076  Test_create_MixedPtrs_17(nargout, out, nargin-1, in+1);
1077  break;
1078  case 18:
1079  Test_create_ptrs_18(nargout, out, nargin-1, in+1);
1080  break;
1081  case 19:
1082  Test_get_container_19(nargout, out, nargin-1, in+1);
1083  break;
1084  case 20:
1085  Test_lambda_20(nargout, out, nargin-1, in+1);
1086  break;
1087  case 21:
1088  Test_markdown_21(nargout, out, nargin-1, in+1);
1089  break;
1090  case 22:
1091  Test_markdown_22(nargout, out, nargin-1, in+1);
1092  break;
1093  case 23:
1094  Test_print_23(nargout, out, nargin-1, in+1);
1095  break;
1096  case 24:
1097  Test_return_Point2Ptr_24(nargout, out, nargin-1, in+1);
1098  break;
1099  case 25:
1100  Test_return_Test_25(nargout, out, nargin-1, in+1);
1101  break;
1102  case 26:
1103  Test_return_TestPtr_26(nargout, out, nargin-1, in+1);
1104  break;
1105  case 27:
1106  Test_return_bool_27(nargout, out, nargin-1, in+1);
1107  break;
1108  case 28:
1109  Test_return_double_28(nargout, out, nargin-1, in+1);
1110  break;
1111  case 29:
1112  Test_return_field_29(nargout, out, nargin-1, in+1);
1113  break;
1114  case 30:
1115  Test_return_int_30(nargout, out, nargin-1, in+1);
1116  break;
1117  case 31:
1118  Test_return_matrix1_31(nargout, out, nargin-1, in+1);
1119  break;
1120  case 32:
1121  Test_return_matrix2_32(nargout, out, nargin-1, in+1);
1122  break;
1123  case 33:
1124  Test_return_pair_33(nargout, out, nargin-1, in+1);
1125  break;
1126  case 34:
1127  Test_return_pair_34(nargout, out, nargin-1, in+1);
1128  break;
1129  case 35:
1130  Test_return_ptrs_35(nargout, out, nargin-1, in+1);
1131  break;
1132  case 36:
1133  Test_return_size_t_36(nargout, out, nargin-1, in+1);
1134  break;
1135  case 37:
1136  Test_return_string_37(nargout, out, nargin-1, in+1);
1137  break;
1138  case 38:
1139  Test_return_vector1_38(nargout, out, nargin-1, in+1);
1140  break;
1141  case 39:
1142  Test_return_vector2_39(nargout, out, nargin-1, in+1);
1143  break;
1144  case 40:
1145  Test_set_container_40(nargout, out, nargin-1, in+1);
1146  break;
1147  case 41:
1148  Test_set_container_41(nargout, out, nargin-1, in+1);
1149  break;
1150  case 42:
1151  Test_set_container_42(nargout, out, nargin-1, in+1);
1152  break;
1153  case 43:
1154  Test_get_model_ptr_43(nargout, out, nargin-1, in+1);
1155  break;
1156  case 44:
1157  Test_set_model_ptr_44(nargout, out, nargin-1, in+1);
1158  break;
1159  case 45:
1160  Test_get_value_45(nargout, out, nargin-1, in+1);
1161  break;
1162  case 46:
1163  Test_set_value_46(nargout, out, nargin-1, in+1);
1164  break;
1165  case 47:
1166  Test_get_name_47(nargout, out, nargin-1, in+1);
1167  break;
1168  case 48:
1169  Test_set_name_48(nargout, out, nargin-1, in+1);
1170  break;
1171  case 49:
1172  PrimitiveRefDouble_collectorInsertAndMakeBase_49(nargout, out, nargin-1, in+1);
1173  break;
1174  case 50:
1175  PrimitiveRefDouble_constructor_50(nargout, out, nargin-1, in+1);
1176  break;
1177  case 51:
1178  PrimitiveRefDouble_deconstructor_51(nargout, out, nargin-1, in+1);
1179  break;
1180  case 52:
1181  PrimitiveRefDouble_Brutal_52(nargout, out, nargin-1, in+1);
1182  break;
1183  case 53:
1184  MyVector3_collectorInsertAndMakeBase_53(nargout, out, nargin-1, in+1);
1185  break;
1186  case 54:
1187  MyVector3_constructor_54(nargout, out, nargin-1, in+1);
1188  break;
1189  case 55:
1190  MyVector3_deconstructor_55(nargout, out, nargin-1, in+1);
1191  break;
1192  case 56:
1193  MyVector12_collectorInsertAndMakeBase_56(nargout, out, nargin-1, in+1);
1194  break;
1195  case 57:
1196  MyVector12_constructor_57(nargout, out, nargin-1, in+1);
1197  break;
1198  case 58:
1199  MyVector12_deconstructor_58(nargout, out, nargin-1, in+1);
1200  break;
1201  case 59:
1203  break;
1204  case 60:
1205  MultipleTemplatesIntDouble_deconstructor_60(nargout, out, nargin-1, in+1);
1206  break;
1207  case 61:
1209  break;
1210  case 62:
1211  MultipleTemplatesIntFloat_deconstructor_62(nargout, out, nargin-1, in+1);
1212  break;
1213  case 63:
1214  ForwardKinematics_collectorInsertAndMakeBase_63(nargout, out, nargin-1, in+1);
1215  break;
1216  case 64:
1217  ForwardKinematics_constructor_64(nargout, out, nargin-1, in+1);
1218  break;
1219  case 65:
1220  ForwardKinematics_constructor_65(nargout, out, nargin-1, in+1);
1221  break;
1222  case 66:
1223  ForwardKinematics_deconstructor_66(nargout, out, nargin-1, in+1);
1224  break;
1225  case 67:
1226  TemplatedConstructor_collectorInsertAndMakeBase_67(nargout, out, nargin-1, in+1);
1227  break;
1228  case 68:
1229  TemplatedConstructor_constructor_68(nargout, out, nargin-1, in+1);
1230  break;
1231  case 69:
1232  TemplatedConstructor_constructor_69(nargout, out, nargin-1, in+1);
1233  break;
1234  case 70:
1235  TemplatedConstructor_constructor_70(nargout, out, nargin-1, in+1);
1236  break;
1237  case 71:
1238  TemplatedConstructor_constructor_71(nargout, out, nargin-1, in+1);
1239  break;
1240  case 72:
1241  TemplatedConstructor_deconstructor_72(nargout, out, nargin-1, in+1);
1242  break;
1243  case 73:
1244  FastSet_collectorInsertAndMakeBase_73(nargout, out, nargin-1, in+1);
1245  break;
1246  case 74:
1247  FastSet_constructor_74(nargout, out, nargin-1, in+1);
1248  break;
1249  case 75:
1250  FastSet_deconstructor_75(nargout, out, nargin-1, in+1);
1251  break;
1252  case 76:
1253  HessianFactor_collectorInsertAndMakeBase_76(nargout, out, nargin-1, in+1);
1254  break;
1255  case 77:
1256  HessianFactor_upcastFromVoid_77(nargout, out, nargin-1, in+1);
1257  break;
1258  case 78:
1259  HessianFactor_constructor_78(nargout, out, nargin-1, in+1);
1260  break;
1261  case 79:
1262  HessianFactor_deconstructor_79(nargout, out, nargin-1, in+1);
1263  break;
1264  case 80:
1265  MyFactorPosePoint2_collectorInsertAndMakeBase_80(nargout, out, nargin-1, in+1);
1266  break;
1267  case 81:
1268  MyFactorPosePoint2_constructor_81(nargout, out, nargin-1, in+1);
1269  break;
1270  case 82:
1271  MyFactorPosePoint2_deconstructor_82(nargout, out, nargin-1, in+1);
1272  break;
1273  case 83:
1274  MyFactorPosePoint2_print_83(nargout, out, nargin-1, in+1);
1275  break;
1276  case 84:
1277  MyFactorPosePoint2_print_84(nargout, out, nargin-1, in+1);
1278  break;
1279  case 85:
1280  MyFactorPosePoint2_print_85(nargout, out, nargin-1, in+1);
1281  break;
1282  }
1283  } catch(const std::exception& e) {
1284  mexErrMsgTxt(("Exception from gtsam:\n" + std::string(e.what()) + "\n").c_str());
1285  }
1286 
1287  std::cout.rdbuf(outbuf);
1288 }
key1
const Symbol key1('v', 1)
collector_Test
static Collector_Test collector_Test
Definition: class_wrapper.cpp:19
create
ADT create(const Signature &signature)
Definition: testAlgebraicDecisionTree.cpp:136
wrap< string >
mxArray * wrap< string >(const string &value)
Definition: matlab.h:134
Test_markdown_22
void Test_markdown_22(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:370
TemplatedConstructor_constructor_70
void TemplatedConstructor_constructor_70(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:827
Collector_MyVector12
std::set< std::shared_ptr< MyVector12 > * > Collector_MyVector12
Definition: class_wrapper.cpp:24
Collector_FunRange
std::set< std::shared_ptr< FunRange > * > Collector_FunRange
Definition: class_wrapper.cpp:14
Test_return_int_30
void Test_return_int_30(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:435
name
Annotation for function names.
Definition: attr.h:51
FunDouble_deconstructor_6
void FunDouble_deconstructor_6(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:224
Test_return_double_28
void Test_return_double_28(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:419
Collector_TemplatedConstructor
std::set< std::shared_ptr< TemplatedConstructor > * > Collector_TemplatedConstructor
Definition: class_wrapper.cpp:32
Test_set_model_ptr_44
void Test_set_model_ptr_44(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:554
Test_print_23
void Test_print_23(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:377
s
RealScalar s
Definition: level1_cplx_impl.h:126
e
Array< double, 1, 3 > e(1./3., 0.5, 2.)
d
static const double d[K][N]
Definition: igam.h:11
Test_return_vector1_38
void Test_return_vector1_38(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:507
PrimitiveRefDouble_Brutal_52
void PrimitiveRefDouble_Brutal_52(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:625
Collector_ForwardKinematics
std::set< std::shared_ptr< ForwardKinematics > * > Collector_ForwardKinematics
Definition: class_wrapper.cpp:30
wrap< double >
mxArray * wrap< double >(const double &value)
Definition: matlab.h:180
b
Scalar * b
Definition: benchVecAdd.cpp:17
MyFactorPosePoint2_print_83
void MyFactorPosePoint2_print_83(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:988
TemplatedConstructor_constructor_69
void TemplatedConstructor_constructor_69(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:815
collector_MyVector3
static Collector_MyVector3 collector_MyVector3
Definition: class_wrapper.cpp:23
MyVector12_collectorInsertAndMakeBase_56
void MyVector12_collectorInsertAndMakeBase_56(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:665
collector_PrimitiveRefDouble
static Collector_PrimitiveRefDouble collector_PrimitiveRefDouble
Definition: class_wrapper.cpp:21
collector_FastSet
static Collector_FastSet collector_FastSet
Definition: class_wrapper.cpp:35
FunDouble_templatedStaticMethodInt_11
void FunDouble_templatedStaticMethodInt_11(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:269
_deleteAllObjects
void _deleteAllObjects()
Definition: class_wrapper.cpp:42
HessianFactor_collectorInsertAndMakeBase_76
void HessianFactor_collectorInsertAndMakeBase_76(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:897
wrap< bool >
mxArray * wrap< bool >(const bool &value)
Definition: matlab.h:156
measured
Point2 measured(-17, 30)
collector_MyVector12
static Collector_MyVector12 collector_MyVector12
Definition: class_wrapper.cpp:25
MyFactorPosePoint2_constructor_81
void MyFactorPosePoint2_constructor_81(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:960
Test_return_vector2_39
void Test_return_vector2_39(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:515
Test_return_ptrs_35
void Test_return_ptrs_35(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:480
MyVector3_constructor_54
void MyVector3_constructor_54(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:641
Collector_PrimitiveRefDouble
std::set< std::shared_ptr< PrimitiveRefDouble > * > Collector_PrimitiveRefDouble
Definition: class_wrapper.cpp:20
TemplatedConstructor_constructor_68
void TemplatedConstructor_constructor_68(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:804
ForwardKinematics_constructor_65
void ForwardKinematics_constructor_65(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:767
Test_return_matrix2_32
void Test_return_matrix2_32(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:451
mexFunction
void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:1013
Collector_FastSet
std::set< std::shared_ptr< FastSet > * > Collector_FastSet
Definition: class_wrapper.cpp:34
MultipleTemplatesIntDouble_deconstructor_60
void MultipleTemplatesIntDouble_deconstructor_60(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:707
HessianFactor_upcastFromVoid_77
void HessianFactor_upcastFromVoid_77(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:910
gtsam::KeyVector
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
Definition: Key.h:92
Test_constructor_13
void Test_constructor_13(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:285
Test_set_container_42
void Test_set_container_42(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:539
gtsam::DefaultKeyFormatter
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
Definition: Key.cpp:30
name
static char name[]
Definition: rgamma.c:72
MyVector3_collectorInsertAndMakeBase_53
void MyVector3_collectorInsertAndMakeBase_53(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:632
mxUINT32OR64_CLASS
#define mxUINT32OR64_CLASS
Definition: matlab.h:58
Test_set_container_41
void Test_set_container_41(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:531
Test_return_matrix1_31
void Test_return_matrix1_31(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:443
simple::p2
static Point3 p2
Definition: testInitializePose3.cpp:51
collector_TemplatedConstructor
static Collector_TemplatedConstructor collector_TemplatedConstructor
Definition: class_wrapper.cpp:33
ceres::Matrix
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > Matrix
Definition: gtsam/3rdparty/ceres/eigen.h:42
Collector_MyVector3
std::set< std::shared_ptr< MyVector3 > * > Collector_MyVector3
Definition: class_wrapper.cpp:22
A
Definition: test_numpy_dtypes.cpp:298
TemplatedConstructor_constructor_71
void TemplatedConstructor_constructor_71(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:839
key2
const Symbol key2('v', 2)
checkArguments
void checkArguments(const string &name, int nargout, int nargin, int expected)
Definition: matlab.h:113
FastSet_constructor_74
void FastSet_constructor_74(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:873
Test_return_field_29
void Test_return_field_29(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:427
MyVector12
MyVector< 12 > MyVector12
Definition: class_wrapper.cpp:9
Collector_HessianFactor
std::set< std::shared_ptr< HessianFactor > * > Collector_HessianFactor
Definition: class_wrapper.cpp:36
mstream
Definition: matlab.h:95
unwrap< size_t >
size_t unwrap< size_t >(const mxArray *array)
Definition: matlab.h:335
collector_HessianFactor
static Collector_HessianFactor collector_HessianFactor
Definition: class_wrapper.cpp:37
unwrap< int >
int unwrap< int >(const mxArray *array)
Definition: matlab.h:328
Test_return_Point2Ptr_24
void Test_return_Point2Ptr_24(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:384
MyFactorPosePoint2_collectorInsertAndMakeBase_80
void MyFactorPosePoint2_collectorInsertAndMakeBase_80(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:951
gtsam::KeyFormatter
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Definition: Key.h:35
gtsam::Pose3
Definition: Pose3.h:37
FunDouble_staticMethodWithThis_10
void FunDouble_staticMethodWithThis_10(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:263
gtsam::make_shared
gtsam::enable_if_t< needs_eigen_aligned_allocator< T >::value, std::shared_ptr< T > > make_shared(Args &&... args)
Definition: make_shared.h:56
arg
Definition: cast.h:1412
collector_ForwardKinematics
static Collector_ForwardKinematics collector_ForwardKinematics
Definition: class_wrapper.cpp:31
wrap_shared_ptr
mxArray * wrap_shared_ptr(std::shared_ptr< Class > shared_ptr, const std::string &matlabName, bool isVirtual)
Definition: matlab.h:487
PrimitiveRefDouble_collectorInsertAndMakeBase_49
void PrimitiveRefDouble_collectorInsertAndMakeBase_49(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:592
wrap< size_t >
mxArray * wrap< size_t >(const size_t &value)
Definition: matlab.h:164
Test_set_container_40
void Test_set_container_40(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:523
Test_create_MixedPtrs_17
void Test_create_MixedPtrs_17(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:330
HessianFactor_constructor_78
void HessianFactor_constructor_78(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:919
Test_deconstructor_15
void Test_deconstructor_15(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:309
Test_return_Test_25
void Test_return_Test_25(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:395
FunDouble_multiTemplatedMethod_7
void FunDouble_multiTemplatedMethod_7(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:237
ForwardKinematics_deconstructor_66
void ForwardKinematics_deconstructor_66(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:782
collector_FunRange
static Collector_FunRange collector_FunRange
Definition: class_wrapper.cpp:15
m
Matrix3f m
Definition: AngleAxis_mimic_euler.cpp:1
FunDouble_collectorInsertAndMakeBase_5
void FunDouble_collectorInsertAndMakeBase_5(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:215
MultipleTemplatesIntDouble_collectorInsertAndMakeBase_59
void MultipleTemplatesIntDouble_collectorInsertAndMakeBase_59(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:698
FunRange_range_3
void FunRange_range_3(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:201
Test_lambda_20
void Test_lambda_20(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:355
MyFactor
GeneralSFMFactor< SfmCamera, Point3 > MyFactor
Definition: SFMExample_bal.cpp:36
MultipleTemplatesIntDouble
MultipleTemplates< int, double > MultipleTemplatesIntDouble
Definition: class_wrapper.cpp:10
collector_MyFactorPosePoint2
static Collector_MyFactorPosePoint2 collector_MyFactorPosePoint2
Definition: class_wrapper.cpp:39
Test_return_bool_27
void Test_return_bool_27(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:411
Collector_MyFactorPosePoint2
std::set< std::shared_ptr< MyFactorPosePoint2 > * > Collector_MyFactorPosePoint2
Definition: class_wrapper.cpp:38
out
std::ofstream out("Result.txt")
Collector_MultipleTemplatesIntDouble
std::set< std::shared_ptr< MultipleTemplatesIntDouble > * > Collector_MultipleTemplatesIntDouble
Definition: class_wrapper.cpp:26
p1
Vector3f p1
Definition: MatrixBase_all.cpp:2
unwrap< bool >
bool unwrap< bool >(const mxArray *array)
Definition: matlab.h:307
PrimitiveRefDouble_deconstructor_51
void PrimitiveRefDouble_deconstructor_51(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:612
FunDouble
Fun< double > FunDouble
Definition: class_wrapper.cpp:6
Test_markdown_21
void Test_markdown_21(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:362
Test_return_pair_33
void Test_return_pair_33(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:459
tree::f
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Definition: testExpression.cpp:218
TemplatedConstructor_deconstructor_72
void TemplatedConstructor_deconstructor_72(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:851
MyFactorPosePoint2_print_85
void MyFactorPosePoint2_print_85(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:1005
a
ArrayXXi a
Definition: Array_initializer_list_23_cxx11.cpp:1
FunRange_constructor_1
void FunRange_constructor_1(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:177
collector_MultipleTemplatesIntDouble
static Collector_MultipleTemplatesIntDouble collector_MultipleTemplatesIntDouble
Definition: class_wrapper.cpp:27
FunRange_deconstructor_2
void FunRange_deconstructor_2(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:188
ForwardKinematics_constructor_64
void ForwardKinematics_constructor_64(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:751
MultipleTemplatesIntFloat
MultipleTemplates< int, float > MultipleTemplatesIntFloat
Definition: class_wrapper.cpp:11
FastSet_deconstructor_75
void FastSet_deconstructor_75(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:884
MyFactorPosePoint2
MyFactor< gtsam::Pose2, gtsam::Matrix > MyFactorPosePoint2
Definition: class_wrapper.cpp:12
MyVector3
MyVector< 3 > MyVector3
Definition: class_wrapper.cpp:8
Test_set_name_48
void Test_set_name_48(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:584
MyFactorPosePoint2_deconstructor_82
void MyFactorPosePoint2_deconstructor_82(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:975
HessianFactor_deconstructor_79
void HessianFactor_deconstructor_79(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:938
gtsam::Values
Definition: Values.h:65
Collector_MultipleTemplatesIntFloat
std::set< std::shared_ptr< MultipleTemplatesIntFloat > * > Collector_MultipleTemplatesIntFloat
Definition: class_wrapper.cpp:28
iter
iterator iter(handle obj)
Definition: pytypes.h:2475
PrimitiveRefDouble
PrimitiveRef< double > PrimitiveRefDouble
Definition: class_wrapper.cpp:7
ForwardKinematics_collectorInsertAndMakeBase_63
void ForwardKinematics_collectorInsertAndMakeBase_63(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:742
Test_return_TestPtr_26
void Test_return_TestPtr_26(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:403
Test_collectorInsertAndMakeBase_12
void Test_collectorInsertAndMakeBase_12(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:276
v
Array< int, Dynamic, 1 > v
Definition: Array_initializer_list_vector_cxx11.cpp:1
PrimitiveRefDouble_constructor_50
void PrimitiveRefDouble_constructor_50(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:601
MyVector12_constructor_57
void MyVector12_constructor_57(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:674
unwrap< string >
string unwrap< string >(const mxArray *array)
Definition: matlab.h:283
MyFactorPosePoint2_print_84
void MyFactorPosePoint2_print_84(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:997
Test
Definition: Test.h:30
TemplatedConstructor_collectorInsertAndMakeBase_67
void TemplatedConstructor_collectorInsertAndMakeBase_67(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:795
Test_get_model_ptr_43
void Test_get_model_ptr_43(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:547
MyVector3_deconstructor_55
void MyVector3_deconstructor_55(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:652
Collector_Test
std::set< std::shared_ptr< Test > * > Collector_Test
Definition: class_wrapper.cpp:18
FunRange_collectorInsertAndMakeBase_0
void FunRange_collectorInsertAndMakeBase_0(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:168
Test_return_pair_34
void Test_return_pair_34(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:470
collector_MultipleTemplatesIntFloat
static Collector_MultipleTemplatesIntFloat collector_MultipleTemplatesIntFloat
Definition: class_wrapper.cpp:29
NULL
#define NULL
Definition: ccolamd.c:609
Test_get_name_47
void Test_get_name_47(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:577
MultipleTemplatesIntFloat_deconstructor_62
void MultipleTemplatesIntFloat_deconstructor_62(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:729
collector_FunDouble
static Collector_FunDouble collector_FunDouble
Definition: class_wrapper.cpp:17
Test_get_container_19
void Test_get_container_19(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:348
Test_return_string_37
void Test_return_string_37(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:499
Test_set_value_46
void Test_set_value_46(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:569
align_3::t
Point2 t(10, 10)
unwrap< double >
double unwrap< double >(const mxArray *array)
Definition: matlab.h:342
Collector_FunDouble
std::set< std::shared_ptr< FunDouble > * > Collector_FunDouble
Definition: class_wrapper.cpp:16
wrap< int >
mxArray * wrap< int >(const int &value)
Definition: matlab.h:172
MyVector12_deconstructor_58
void MyVector12_deconstructor_58(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:685
_class_RTTIRegister
void _class_RTTIRegister()
Definition: class_wrapper.cpp:135
ceres::Vector
Eigen::Matrix< double, Eigen::Dynamic, 1 > Vector
Definition: gtsam/3rdparty/ceres/eigen.h:38
FunDouble_sets_8
void FunDouble_sets_8(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:247
FunRange_create_4
void FunRange_create_4(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:209
FunDouble_templatedMethod_9
void FunDouble_templatedMethod_9(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:254
test_callbacks.value
value
Definition: test_callbacks.py:160
Test_get_value_45
void Test_get_value_45(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:562
Test_arg_EigenConstRef_16
void Test_arg_EigenConstRef_16(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:322
Test_create_ptrs_18
void Test_create_ptrs_18(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:339
FastSet_collectorInsertAndMakeBase_73
void FastSet_collectorInsertAndMakeBase_73(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:864
Test_return_size_t_36
void Test_return_size_t_36(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:491
Test_constructor_14
void Test_constructor_14(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:296
MultipleTemplatesIntFloat_collectorInsertAndMakeBase_61
void MultipleTemplatesIntFloat_collectorInsertAndMakeBase_61(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Definition: class_wrapper.cpp:720


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:01:58