| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | #include <gtwrap/matlab.h>
 | 
					
						
							|  |  |  | #include <map>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <folder/path/to/Test.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | typedef Fun<double> FunDouble; | 
					
						
							|  |  |  | typedef PrimitiveRef<double> PrimitiveRefDouble; | 
					
						
							|  |  |  | typedef MyVector<3> MyVector3; | 
					
						
							|  |  |  | typedef MyVector<12> MyVector12; | 
					
						
							|  |  |  | typedef MultipleTemplates<int, double> MultipleTemplatesIntDouble; | 
					
						
							|  |  |  | typedef MultipleTemplates<int, float> MultipleTemplatesIntFloat; | 
					
						
							|  |  |  | typedef MyFactor<gtsam::Pose2, gtsam::Matrix> MyFactorPosePoint2; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  | typedef std::set<std::shared_ptr<FunRange>*> Collector_FunRange; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | static Collector_FunRange collector_FunRange; | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  | typedef std::set<std::shared_ptr<FunDouble>*> Collector_FunDouble; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | static Collector_FunDouble collector_FunDouble; | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  | typedef std::set<std::shared_ptr<Test>*> Collector_Test; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | static Collector_Test collector_Test; | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  | typedef std::set<std::shared_ptr<PrimitiveRefDouble>*> Collector_PrimitiveRefDouble; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | static Collector_PrimitiveRefDouble collector_PrimitiveRefDouble; | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  | typedef std::set<std::shared_ptr<MyVector3>*> Collector_MyVector3; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | static Collector_MyVector3 collector_MyVector3; | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  | typedef std::set<std::shared_ptr<MyVector12>*> Collector_MyVector12; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | static Collector_MyVector12 collector_MyVector12; | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  | typedef std::set<std::shared_ptr<MultipleTemplatesIntDouble>*> Collector_MultipleTemplatesIntDouble; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | static Collector_MultipleTemplatesIntDouble collector_MultipleTemplatesIntDouble; | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  | typedef std::set<std::shared_ptr<MultipleTemplatesIntFloat>*> Collector_MultipleTemplatesIntFloat; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | static Collector_MultipleTemplatesIntFloat collector_MultipleTemplatesIntFloat; | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  | typedef std::set<std::shared_ptr<ForwardKinematics>*> Collector_ForwardKinematics; | 
					
						
							| 
									
										
										
										
											2021-06-17 01:51:43 +08:00
										 |  |  | static Collector_ForwardKinematics collector_ForwardKinematics; | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  | typedef std::set<std::shared_ptr<TemplatedConstructor>*> Collector_TemplatedConstructor; | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  | static Collector_TemplatedConstructor collector_TemplatedConstructor; | 
					
						
							| 
									
										
										
										
											2024-01-17 04:04:09 +08:00
										 |  |  | typedef std::set<std::shared_ptr<FastSet>*> Collector_FastSet; | 
					
						
							|  |  |  | static Collector_FastSet collector_FastSet; | 
					
						
							| 
									
										
										
										
											2024-06-28 23:03:51 +08:00
										 |  |  | typedef std::set<std::shared_ptr<HessianFactor>*> Collector_HessianFactor; | 
					
						
							|  |  |  | static Collector_HessianFactor collector_HessianFactor; | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  | typedef std::set<std::shared_ptr<MyFactorPosePoint2>*> Collector_MyFactorPosePoint2; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | static Collector_MyFactorPosePoint2 collector_MyFactorPosePoint2; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-11 23:10:35 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | void _deleteAllObjects() | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   mstream mout; | 
					
						
							|  |  |  |   std::streambuf *outbuf = std::cout.rdbuf(&mout); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   bool anyDeleted = false; | 
					
						
							|  |  |  |   { for(Collector_FunRange::iterator iter = collector_FunRange.begin(); | 
					
						
							|  |  |  |       iter != collector_FunRange.end(); ) { | 
					
						
							|  |  |  |     delete *iter; | 
					
						
							|  |  |  |     collector_FunRange.erase(iter++); | 
					
						
							|  |  |  |     anyDeleted = true; | 
					
						
							|  |  |  |   } } | 
					
						
							|  |  |  |   { for(Collector_FunDouble::iterator iter = collector_FunDouble.begin(); | 
					
						
							|  |  |  |       iter != collector_FunDouble.end(); ) { | 
					
						
							|  |  |  |     delete *iter; | 
					
						
							|  |  |  |     collector_FunDouble.erase(iter++); | 
					
						
							|  |  |  |     anyDeleted = true; | 
					
						
							|  |  |  |   } } | 
					
						
							|  |  |  |   { for(Collector_Test::iterator iter = collector_Test.begin(); | 
					
						
							|  |  |  |       iter != collector_Test.end(); ) { | 
					
						
							|  |  |  |     delete *iter; | 
					
						
							|  |  |  |     collector_Test.erase(iter++); | 
					
						
							|  |  |  |     anyDeleted = true; | 
					
						
							|  |  |  |   } } | 
					
						
							|  |  |  |   { for(Collector_PrimitiveRefDouble::iterator iter = collector_PrimitiveRefDouble.begin(); | 
					
						
							|  |  |  |       iter != collector_PrimitiveRefDouble.end(); ) { | 
					
						
							|  |  |  |     delete *iter; | 
					
						
							|  |  |  |     collector_PrimitiveRefDouble.erase(iter++); | 
					
						
							|  |  |  |     anyDeleted = true; | 
					
						
							|  |  |  |   } } | 
					
						
							|  |  |  |   { for(Collector_MyVector3::iterator iter = collector_MyVector3.begin(); | 
					
						
							|  |  |  |       iter != collector_MyVector3.end(); ) { | 
					
						
							|  |  |  |     delete *iter; | 
					
						
							|  |  |  |     collector_MyVector3.erase(iter++); | 
					
						
							|  |  |  |     anyDeleted = true; | 
					
						
							|  |  |  |   } } | 
					
						
							|  |  |  |   { for(Collector_MyVector12::iterator iter = collector_MyVector12.begin(); | 
					
						
							|  |  |  |       iter != collector_MyVector12.end(); ) { | 
					
						
							|  |  |  |     delete *iter; | 
					
						
							|  |  |  |     collector_MyVector12.erase(iter++); | 
					
						
							|  |  |  |     anyDeleted = true; | 
					
						
							|  |  |  |   } } | 
					
						
							|  |  |  |   { for(Collector_MultipleTemplatesIntDouble::iterator iter = collector_MultipleTemplatesIntDouble.begin(); | 
					
						
							|  |  |  |       iter != collector_MultipleTemplatesIntDouble.end(); ) { | 
					
						
							|  |  |  |     delete *iter; | 
					
						
							|  |  |  |     collector_MultipleTemplatesIntDouble.erase(iter++); | 
					
						
							|  |  |  |     anyDeleted = true; | 
					
						
							|  |  |  |   } } | 
					
						
							|  |  |  |   { for(Collector_MultipleTemplatesIntFloat::iterator iter = collector_MultipleTemplatesIntFloat.begin(); | 
					
						
							|  |  |  |       iter != collector_MultipleTemplatesIntFloat.end(); ) { | 
					
						
							|  |  |  |     delete *iter; | 
					
						
							|  |  |  |     collector_MultipleTemplatesIntFloat.erase(iter++); | 
					
						
							|  |  |  |     anyDeleted = true; | 
					
						
							|  |  |  |   } } | 
					
						
							| 
									
										
										
										
											2021-06-17 01:51:43 +08:00
										 |  |  |   { for(Collector_ForwardKinematics::iterator iter = collector_ForwardKinematics.begin(); | 
					
						
							|  |  |  |       iter != collector_ForwardKinematics.end(); ) { | 
					
						
							|  |  |  |     delete *iter; | 
					
						
							|  |  |  |     collector_ForwardKinematics.erase(iter++); | 
					
						
							|  |  |  |     anyDeleted = true; | 
					
						
							|  |  |  |   } } | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  |   { for(Collector_TemplatedConstructor::iterator iter = collector_TemplatedConstructor.begin(); | 
					
						
							|  |  |  |       iter != collector_TemplatedConstructor.end(); ) { | 
					
						
							|  |  |  |     delete *iter; | 
					
						
							|  |  |  |     collector_TemplatedConstructor.erase(iter++); | 
					
						
							|  |  |  |     anyDeleted = true; | 
					
						
							|  |  |  |   } } | 
					
						
							| 
									
										
										
										
											2024-01-17 04:04:09 +08:00
										 |  |  |   { for(Collector_FastSet::iterator iter = collector_FastSet.begin(); | 
					
						
							|  |  |  |       iter != collector_FastSet.end(); ) { | 
					
						
							|  |  |  |     delete *iter; | 
					
						
							|  |  |  |     collector_FastSet.erase(iter++); | 
					
						
							|  |  |  |     anyDeleted = true; | 
					
						
							|  |  |  |   } } | 
					
						
							| 
									
										
										
										
											2024-06-28 23:03:51 +08:00
										 |  |  |   { for(Collector_HessianFactor::iterator iter = collector_HessianFactor.begin(); | 
					
						
							|  |  |  |       iter != collector_HessianFactor.end(); ) { | 
					
						
							|  |  |  |     delete *iter; | 
					
						
							|  |  |  |     collector_HessianFactor.erase(iter++); | 
					
						
							|  |  |  |     anyDeleted = true; | 
					
						
							|  |  |  |   } } | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |   { for(Collector_MyFactorPosePoint2::iterator iter = collector_MyFactorPosePoint2.begin(); | 
					
						
							|  |  |  |       iter != collector_MyFactorPosePoint2.end(); ) { | 
					
						
							|  |  |  |     delete *iter; | 
					
						
							|  |  |  |     collector_MyFactorPosePoint2.erase(iter++); | 
					
						
							|  |  |  |     anyDeleted = true; | 
					
						
							|  |  |  |   } } | 
					
						
							| 
									
										
										
										
											2021-07-11 23:10:35 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |   if(anyDeleted) | 
					
						
							|  |  |  |     cout << | 
					
						
							|  |  |  |       "WARNING:  Wrap modules with variables in the workspace have been reloaded due to\n" | 
					
						
							|  |  |  |       "calling destructors, call 'clear all' again if you plan to now recompile a wrap\n" | 
					
						
							|  |  |  |       "module, so that your recompiled module is used instead of the old one." << endl; | 
					
						
							|  |  |  |   std::cout.rdbuf(outbuf); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void _class_RTTIRegister() { | 
					
						
							|  |  |  |   const mxArray *alreadyCreated = mexGetVariablePtr("global", "gtsam_class_rttiRegistry_created"); | 
					
						
							|  |  |  |   if(!alreadyCreated) { | 
					
						
							|  |  |  |     std::map<std::string, std::string> types; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-28 23:03:51 +08:00
										 |  |  |     types.insert(std::make_pair(typeid(HessianFactor).name(), "HessianFactor")); | 
					
						
							| 
									
										
										
										
											2021-07-11 23:10:35 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |     mxArray *registry = mexGetVariable("global", "gtsamwrap_rttiRegistry"); | 
					
						
							|  |  |  |     if(!registry) | 
					
						
							|  |  |  |       registry = mxCreateStructMatrix(1, 1, 0, NULL); | 
					
						
							|  |  |  |     typedef std::pair<std::string, std::string> StringPair; | 
					
						
							|  |  |  |     for(const StringPair& rtti_matlab: types) { | 
					
						
							|  |  |  |       int fieldId = mxAddField(registry, rtti_matlab.first.c_str()); | 
					
						
							| 
									
										
										
										
											2021-07-11 23:10:35 +08:00
										 |  |  |       if(fieldId < 0) { | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |         mexErrMsgTxt("gtsam wrap:  Error indexing RTTI types, inheritance will not work correctly"); | 
					
						
							| 
									
										
										
										
											2021-07-11 23:10:35 +08:00
										 |  |  |       } | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       mxArray *matlabName = mxCreateString(rtti_matlab.second.c_str()); | 
					
						
							|  |  |  |       mxSetFieldByNumber(registry, 0, fieldId, matlabName); | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2021-07-11 23:10:35 +08:00
										 |  |  |     if(mexPutVariable("global", "gtsamwrap_rttiRegistry", registry) != 0) { | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       mexErrMsgTxt("gtsam wrap:  Error indexing RTTI types, inheritance will not work correctly"); | 
					
						
							| 
									
										
										
										
											2021-07-11 23:10:35 +08:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |     mxDestroyArray(registry); | 
					
						
							| 
									
										
										
										
											2021-07-11 23:10:35 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |     mxArray *newAlreadyCreated = mxCreateNumericMatrix(0, 0, mxINT8_CLASS, mxREAL); | 
					
						
							| 
									
										
										
										
											2021-12-18 04:55:42 +08:00
										 |  |  |     if(mexPutVariable("global", "gtsam_class_rttiRegistry_created", newAlreadyCreated) != 0) { | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       mexErrMsgTxt("gtsam wrap:  Error indexing RTTI types, inheritance will not work correctly"); | 
					
						
							| 
									
										
										
										
											2021-07-11 23:10:35 +08:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |     mxDestroyArray(newAlreadyCreated); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void FunRange_collectorInsertAndMakeBase_0(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<FunRange> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0])); | 
					
						
							|  |  |  |   collector_FunRange.insert(self); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void FunRange_constructor_1(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<FunRange> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   Shared *self = new Shared(new FunRange()); | 
					
						
							|  |  |  |   collector_FunRange.insert(self); | 
					
						
							|  |  |  |   out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL); | 
					
						
							|  |  |  |   *reinterpret_cast<Shared**> (mxGetData(out[0])) = self; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void FunRange_deconstructor_2(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<FunRange> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |   checkArguments("delete_FunRange",nargout,nargin,1); | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0])); | 
					
						
							|  |  |  |   Collector_FunRange::iterator item; | 
					
						
							|  |  |  |   item = collector_FunRange.find(self); | 
					
						
							|  |  |  |   if(item != collector_FunRange.end()) { | 
					
						
							|  |  |  |     collector_FunRange.erase(item); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2021-12-18 04:55:42 +08:00
										 |  |  |   delete self; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void FunRange_range_3(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   checkArguments("range",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<FunRange>(in[0], "ptr_FunRange"); | 
					
						
							|  |  |  |   double d = unwrap< double >(in[1]); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   out[0] = wrap_shared_ptr(std::make_shared<FunRange>(obj->range(d)),"FunRange", false); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void FunRange_create_4(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   checkArguments("FunRange.create",nargout,nargin,0); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   out[0] = wrap_shared_ptr(std::make_shared<FunRange>(FunRange::create()),"FunRange", false); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void FunDouble_collectorInsertAndMakeBase_5(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<Fun<double>> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0])); | 
					
						
							|  |  |  |   collector_FunDouble.insert(self); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void FunDouble_deconstructor_6(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<Fun<double>> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |   checkArguments("delete_FunDouble",nargout,nargin,1); | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0])); | 
					
						
							|  |  |  |   Collector_FunDouble::iterator item; | 
					
						
							|  |  |  |   item = collector_FunDouble.find(self); | 
					
						
							|  |  |  |   if(item != collector_FunDouble.end()) { | 
					
						
							|  |  |  |     collector_FunDouble.erase(item); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2021-12-18 04:55:42 +08:00
										 |  |  |   delete self; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-03-26 01:32:38 +08:00
										 |  |  | void FunDouble_multiTemplatedMethod_7(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2021-03-26 01:32:38 +08:00
										 |  |  |   checkArguments("multiTemplatedMethodStringSize_t",nargout,nargin-1,3); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |   auto obj = unwrap_shared_ptr<Fun<double>>(in[0], "ptr_FunDouble"); | 
					
						
							|  |  |  |   double d = unwrap< double >(in[1]); | 
					
						
							|  |  |  |   string t = unwrap< string >(in[2]); | 
					
						
							| 
									
										
										
										
											2021-03-26 01:32:38 +08:00
										 |  |  |   size_t u = unwrap< size_t >(in[3]); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   out[0] = wrap_shared_ptr(std::make_shared<Fun<double>>(obj->multiTemplatedMethod<string,size_t>(d,t,u)),"Fun<double>", false); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  | void FunDouble_sets_8(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   checkArguments("sets",nargout,nargin-1,0); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Fun<double>>(in[0], "ptr_FunDouble"); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   out[0] = wrap_shared_ptr(std::make_shared<std::map<double,Fun<double>::double>>(obj->sets()),"std.mapdoubledouble", false); | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void FunDouble_templatedMethod_9(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2021-03-26 01:32:38 +08:00
										 |  |  |   checkArguments("templatedMethodString",nargout,nargin-1,2); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Fun<double>>(in[0], "ptr_FunDouble"); | 
					
						
							|  |  |  |   double d = unwrap< double >(in[1]); | 
					
						
							|  |  |  |   string t = unwrap< string >(in[2]); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   out[0] = wrap_shared_ptr(std::make_shared<Fun<double>>(obj->templatedMethod<string>(d,t)),"Fun<double>", false); | 
					
						
							| 
									
										
										
										
											2021-03-26 01:32:38 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  | void FunDouble_staticMethodWithThis_10(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-26 01:32:38 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  |   checkArguments("Fun<double>.staticMethodWithThis",nargout,nargin,0); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   out[0] = wrap_shared_ptr(std::make_shared<Fun<double>>(Fun<double>::staticMethodWithThis()),"Fundouble", false); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  | void FunDouble_templatedStaticMethodInt_11(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-10-26 00:46:06 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  |   checkArguments("Fun<double>.templatedStaticMethodInt",nargout,nargin,1); | 
					
						
							| 
									
										
										
										
											2021-10-26 00:46:06 +08:00
										 |  |  |   int m = unwrap< int >(in[0]); | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  |   out[0] = wrap< double >(Fun<double>::templatedStaticMethod(m)); | 
					
						
							| 
									
										
										
										
											2021-10-26 00:46:06 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  | void Test_collectorInsertAndMakeBase_12(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<Test> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0])); | 
					
						
							|  |  |  |   collector_Test.insert(self); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  | void Test_constructor_13(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<Test> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   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; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  | void Test_constructor_14(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<Test> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   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; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  | void Test_deconstructor_15(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<Test> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |   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()) { | 
					
						
							|  |  |  |     collector_Test.erase(item); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2021-12-18 04:55:42 +08:00
										 |  |  |   delete self; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  | void Test_arg_EigenConstRef_16(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("arg_EigenConstRef",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   Matrix value = unwrap< Matrix >(in[1]); | 
					
						
							|  |  |  |   obj->arg_EigenConstRef(value); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  | void Test_create_MixedPtrs_17(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("create_MixedPtrs",nargout,nargin-1,0); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   auto pairResult = obj->create_MixedPtrs(); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   out[0] = wrap_shared_ptr(std::make_shared<Test>(pairResult.first),"Test", false); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |   out[1] = wrap_shared_ptr(pairResult.second,"Test", false); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  | void Test_create_ptrs_18(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("create_ptrs",nargout,nargin-1,0); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   auto pairResult = obj->create_ptrs(); | 
					
						
							|  |  |  |   out[0] = wrap_shared_ptr(pairResult.first,"Test", false); | 
					
						
							|  |  |  |   out[1] = wrap_shared_ptr(pairResult.second,"Test", false); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  | void Test_get_container_19(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-04-02 11:20:12 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("get_container",nargout,nargin-1,0); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   out[0] = wrap_shared_ptr(std::make_shared<std::vector<testing::Test>>(obj->get_container()),"std.vectorTest", false); | 
					
						
							| 
									
										
										
										
											2021-04-02 11:20:12 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  | void Test_lambda_20(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-06-17 01:51:43 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("lambda",nargout,nargin-1,0); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   obj->lambda(); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_markdown_21(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   checkArguments("markdown",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   gtsam::KeyFormatter& keyFormatter = *unwrap_shared_ptr< gtsam::KeyFormatter >(in[1], "ptr_gtsamKeyFormatter"); | 
					
						
							|  |  |  |   out[0] = wrap< string >(obj->markdown(keyFormatter)); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void Test_markdown_22(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   checkArguments("markdown",nargout,nargin-1,0); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   out[0] = wrap< string >(obj->markdown(gtsam::DefaultKeyFormatter)); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void Test_print_23(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("print",nargout,nargin-1,0); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   obj->print(); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_return_Point2Ptr_24(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("return_Point2Ptr",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   bool value = unwrap< bool >(in[1]); | 
					
						
							|  |  |  |   { | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   std::shared_ptr<Point2> shared(obj->return_Point2Ptr(value)); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |   out[0] = wrap_shared_ptr(shared,"Point2"); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_return_Test_25(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("return_Test",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   std::shared_ptr<Test> value = unwrap_shared_ptr< Test >(in[1], "ptr_Test"); | 
					
						
							|  |  |  |   out[0] = wrap_shared_ptr(std::make_shared<Test>(obj->return_Test(value)),"Test", false); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_return_TestPtr_26(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("return_TestPtr",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   std::shared_ptr<Test> value = unwrap_shared_ptr< Test >(in[1], "ptr_Test"); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |   out[0] = wrap_shared_ptr(obj->return_TestPtr(value),"Test", false); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_return_bool_27(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("return_bool",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   bool value = unwrap< bool >(in[1]); | 
					
						
							|  |  |  |   out[0] = wrap< bool >(obj->return_bool(value)); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_return_double_28(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("return_double",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   double value = unwrap< double >(in[1]); | 
					
						
							|  |  |  |   out[0] = wrap< double >(obj->return_double(value)); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_return_field_29(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("return_field",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   Test& t = *unwrap_shared_ptr< Test >(in[1], "ptr_Test"); | 
					
						
							|  |  |  |   out[0] = wrap< bool >(obj->return_field(t)); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_return_int_30(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("return_int",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   int value = unwrap< int >(in[1]); | 
					
						
							|  |  |  |   out[0] = wrap< int >(obj->return_int(value)); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_return_matrix1_31(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("return_matrix1",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   Matrix value = unwrap< Matrix >(in[1]); | 
					
						
							|  |  |  |   out[0] = wrap< Matrix >(obj->return_matrix1(value)); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_return_matrix2_32(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("return_matrix2",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   Matrix value = unwrap< Matrix >(in[1]); | 
					
						
							|  |  |  |   out[0] = wrap< Matrix >(obj->return_matrix2(value)); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_return_pair_33(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("return_pair",nargout,nargin-1,2); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   Vector v = unwrap< Vector >(in[1]); | 
					
						
							|  |  |  |   Matrix A = unwrap< Matrix >(in[2]); | 
					
						
							|  |  |  |   auto pairResult = obj->return_pair(v,A); | 
					
						
							|  |  |  |   out[0] = wrap< Vector >(pairResult.first); | 
					
						
							|  |  |  |   out[1] = wrap< Matrix >(pairResult.second); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_return_pair_34(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("return_pair",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   Vector v = unwrap< Vector >(in[1]); | 
					
						
							|  |  |  |   auto pairResult = obj->return_pair(v); | 
					
						
							|  |  |  |   out[0] = wrap< Vector >(pairResult.first); | 
					
						
							|  |  |  |   out[1] = wrap< Matrix >(pairResult.second); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_return_ptrs_35(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("return_ptrs",nargout,nargin-1,2); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   std::shared_ptr<Test> p1 = unwrap_shared_ptr< Test >(in[1], "ptr_Test"); | 
					
						
							|  |  |  |   std::shared_ptr<Test> p2 = unwrap_shared_ptr< Test >(in[2], "ptr_Test"); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |   auto pairResult = obj->return_ptrs(p1,p2); | 
					
						
							|  |  |  |   out[0] = wrap_shared_ptr(pairResult.first,"Test", false); | 
					
						
							|  |  |  |   out[1] = wrap_shared_ptr(pairResult.second,"Test", false); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_return_size_t_36(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("return_size_t",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   size_t value = unwrap< size_t >(in[1]); | 
					
						
							|  |  |  |   out[0] = wrap< size_t >(obj->return_size_t(value)); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_return_string_37(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("return_string",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   string value = unwrap< string >(in[1]); | 
					
						
							|  |  |  |   out[0] = wrap< string >(obj->return_string(value)); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_return_vector1_38(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("return_vector1",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   Vector value = unwrap< Vector >(in[1]); | 
					
						
							|  |  |  |   out[0] = wrap< Vector >(obj->return_vector1(value)); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_return_vector2_39(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("return_vector2",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   Vector value = unwrap< Vector >(in[1]); | 
					
						
							|  |  |  |   out[0] = wrap< Vector >(obj->return_vector2(value)); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_set_container_40(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-04-02 11:20:12 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("set_container",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   std::shared_ptr<std::vector<testing::Test>> container = unwrap_shared_ptr< std::vector<testing::Test> >(in[1], "ptr_stdvectorTest"); | 
					
						
							| 
									
										
										
										
											2021-04-02 11:20:12 +08:00
										 |  |  |   obj->set_container(*container); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_set_container_41(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-04-02 11:20:12 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("set_container",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   std::shared_ptr<std::vector<testing::Test>> container = unwrap_shared_ptr< std::vector<testing::Test> >(in[1], "ptr_stdvectorTest"); | 
					
						
							| 
									
										
										
										
											2021-04-02 11:20:12 +08:00
										 |  |  |   obj->set_container(*container); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  | void Test_set_container_42(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-04-02 11:20:12 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("set_container",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   std::shared_ptr<std::vector<testing::Test>> container = unwrap_shared_ptr< std::vector<testing::Test> >(in[1], "ptr_stdvectorTest"); | 
					
						
							| 
									
										
										
										
											2021-04-02 11:20:12 +08:00
										 |  |  |   obj->set_container(*container); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 01:10:19 +08:00
										 |  |  | void Test_get_model_ptr_43(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   checkArguments("model_ptr",nargout,nargin-1,0); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   out[0] = wrap_shared_ptr(obj->model_ptr,"gtsam.noiseModel.Base", false); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void Test_set_model_ptr_44(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   checkArguments("model_ptr",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   std::shared_ptr<gtsam::noiseModel::Base> model_ptr = unwrap_shared_ptr< gtsam::noiseModel::Base >(in[1], "ptr_gtsamnoiseModelBase"); | 
					
						
							| 
									
										
										
										
											2022-10-29 01:10:19 +08:00
										 |  |  |   obj->model_ptr = *model_ptr; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void Test_get_value_45(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   checkArguments("value",nargout,nargin-1,0); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   out[0] = wrap< double >(obj->value); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void Test_set_value_46(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   checkArguments("value",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   double value = unwrap< double >(in[1]); | 
					
						
							|  |  |  |   obj->value = value; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void Test_get_name_47(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   checkArguments("name",nargout,nargin-1,0); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   out[0] = wrap< string >(obj->name); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void Test_set_name_48(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   checkArguments("name",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<Test>(in[0], "ptr_Test"); | 
					
						
							|  |  |  |   string name = unwrap< string >(in[1]); | 
					
						
							|  |  |  |   obj->name = name; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void PrimitiveRefDouble_collectorInsertAndMakeBase_49(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<PrimitiveRef<double>> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0])); | 
					
						
							|  |  |  |   collector_PrimitiveRefDouble.insert(self); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void PrimitiveRefDouble_constructor_50(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<PrimitiveRef<double>> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   Shared *self = new Shared(new PrimitiveRef<double>()); | 
					
						
							|  |  |  |   collector_PrimitiveRefDouble.insert(self); | 
					
						
							|  |  |  |   out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL); | 
					
						
							|  |  |  |   *reinterpret_cast<Shared**> (mxGetData(out[0])) = self; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void PrimitiveRefDouble_deconstructor_51(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<PrimitiveRef<double>> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |   checkArguments("delete_PrimitiveRefDouble",nargout,nargin,1); | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0])); | 
					
						
							|  |  |  |   Collector_PrimitiveRefDouble::iterator item; | 
					
						
							|  |  |  |   item = collector_PrimitiveRefDouble.find(self); | 
					
						
							|  |  |  |   if(item != collector_PrimitiveRefDouble.end()) { | 
					
						
							|  |  |  |     collector_PrimitiveRefDouble.erase(item); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2021-12-18 04:55:42 +08:00
										 |  |  |   delete self; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void PrimitiveRefDouble_Brutal_52(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  |   checkArguments("PrimitiveRef<double>.Brutal",nargout,nargin,1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |   double t = unwrap< double >(in[0]); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   out[0] = wrap_shared_ptr(std::make_shared<PrimitiveRef<double>>(PrimitiveRef<double>::Brutal(t)),"PrimitiveRefdouble", false); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void MyVector3_collectorInsertAndMakeBase_53(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<MyVector<3>> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0])); | 
					
						
							|  |  |  |   collector_MyVector3.insert(self); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void MyVector3_constructor_54(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<MyVector<3>> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   Shared *self = new Shared(new MyVector<3>()); | 
					
						
							|  |  |  |   collector_MyVector3.insert(self); | 
					
						
							|  |  |  |   out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL); | 
					
						
							|  |  |  |   *reinterpret_cast<Shared**> (mxGetData(out[0])) = self; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void MyVector3_deconstructor_55(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<MyVector<3>> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |   checkArguments("delete_MyVector3",nargout,nargin,1); | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0])); | 
					
						
							|  |  |  |   Collector_MyVector3::iterator item; | 
					
						
							|  |  |  |   item = collector_MyVector3.find(self); | 
					
						
							|  |  |  |   if(item != collector_MyVector3.end()) { | 
					
						
							|  |  |  |     collector_MyVector3.erase(item); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2021-12-18 04:55:42 +08:00
										 |  |  |   delete self; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void MyVector12_collectorInsertAndMakeBase_56(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<MyVector<12>> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0])); | 
					
						
							|  |  |  |   collector_MyVector12.insert(self); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void MyVector12_constructor_57(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<MyVector<12>> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   Shared *self = new Shared(new MyVector<12>()); | 
					
						
							|  |  |  |   collector_MyVector12.insert(self); | 
					
						
							|  |  |  |   out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL); | 
					
						
							|  |  |  |   *reinterpret_cast<Shared**> (mxGetData(out[0])) = self; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void MyVector12_deconstructor_58(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<MyVector<12>> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |   checkArguments("delete_MyVector12",nargout,nargin,1); | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0])); | 
					
						
							|  |  |  |   Collector_MyVector12::iterator item; | 
					
						
							|  |  |  |   item = collector_MyVector12.find(self); | 
					
						
							|  |  |  |   if(item != collector_MyVector12.end()) { | 
					
						
							|  |  |  |     collector_MyVector12.erase(item); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2021-12-18 04:55:42 +08:00
										 |  |  |   delete self; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void MultipleTemplatesIntDouble_collectorInsertAndMakeBase_59(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<MultipleTemplates<int, double>> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0])); | 
					
						
							|  |  |  |   collector_MultipleTemplatesIntDouble.insert(self); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void MultipleTemplatesIntDouble_deconstructor_60(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<MultipleTemplates<int, double>> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |   checkArguments("delete_MultipleTemplatesIntDouble",nargout,nargin,1); | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0])); | 
					
						
							|  |  |  |   Collector_MultipleTemplatesIntDouble::iterator item; | 
					
						
							|  |  |  |   item = collector_MultipleTemplatesIntDouble.find(self); | 
					
						
							|  |  |  |   if(item != collector_MultipleTemplatesIntDouble.end()) { | 
					
						
							|  |  |  |     collector_MultipleTemplatesIntDouble.erase(item); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2021-12-18 04:55:42 +08:00
										 |  |  |   delete self; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void MultipleTemplatesIntFloat_collectorInsertAndMakeBase_61(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<MultipleTemplates<int, float>> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0])); | 
					
						
							|  |  |  |   collector_MultipleTemplatesIntFloat.insert(self); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void MultipleTemplatesIntFloat_deconstructor_62(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<MultipleTemplates<int, float>> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |   checkArguments("delete_MultipleTemplatesIntFloat",nargout,nargin,1); | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0])); | 
					
						
							|  |  |  |   Collector_MultipleTemplatesIntFloat::iterator item; | 
					
						
							|  |  |  |   item = collector_MultipleTemplatesIntFloat.find(self); | 
					
						
							|  |  |  |   if(item != collector_MultipleTemplatesIntFloat.end()) { | 
					
						
							|  |  |  |     collector_MultipleTemplatesIntFloat.erase(item); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2021-12-18 04:55:42 +08:00
										 |  |  |   delete self; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void ForwardKinematics_collectorInsertAndMakeBase_63(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-06-17 01:51:43 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<ForwardKinematics> Shared; | 
					
						
							| 
									
										
										
										
											2021-06-17 01:51:43 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0])); | 
					
						
							|  |  |  |   collector_ForwardKinematics.insert(self); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void ForwardKinematics_constructor_64(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-06-17 01:51:43 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<ForwardKinematics> Shared; | 
					
						
							| 
									
										
										
										
											2021-06-17 01:51:43 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   gtdynamics::Robot& robot = *unwrap_shared_ptr< gtdynamics::Robot >(in[0], "ptr_gtdynamicsRobot"); | 
					
						
							|  |  |  |   string& start_link_name = *unwrap_shared_ptr< string >(in[1], "ptr_string"); | 
					
						
							|  |  |  |   string& end_link_name = *unwrap_shared_ptr< string >(in[2], "ptr_string"); | 
					
						
							|  |  |  |   gtsam::Values& joint_angles = *unwrap_shared_ptr< gtsam::Values >(in[3], "ptr_gtsamValues"); | 
					
						
							|  |  |  |   gtsam::Pose3& l2Tp = *unwrap_shared_ptr< gtsam::Pose3 >(in[4], "ptr_gtsamPose3"); | 
					
						
							|  |  |  |   Shared *self = new Shared(new ForwardKinematics(robot,start_link_name,end_link_name,joint_angles,l2Tp)); | 
					
						
							|  |  |  |   collector_ForwardKinematics.insert(self); | 
					
						
							|  |  |  |   out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL); | 
					
						
							|  |  |  |   *reinterpret_cast<Shared**> (mxGetData(out[0])) = self; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void ForwardKinematics_constructor_65(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-12-13 21:53:49 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<ForwardKinematics> Shared; | 
					
						
							| 
									
										
										
										
											2021-12-13 21:53:49 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   gtdynamics::Robot& robot = *unwrap_shared_ptr< gtdynamics::Robot >(in[0], "ptr_gtdynamicsRobot"); | 
					
						
							|  |  |  |   string& start_link_name = *unwrap_shared_ptr< string >(in[1], "ptr_string"); | 
					
						
							|  |  |  |   string& end_link_name = *unwrap_shared_ptr< string >(in[2], "ptr_string"); | 
					
						
							|  |  |  |   gtsam::Values& joint_angles = *unwrap_shared_ptr< gtsam::Values >(in[3], "ptr_gtsamValues"); | 
					
						
							|  |  |  |   Shared *self = new Shared(new ForwardKinematics(robot,start_link_name,end_link_name,joint_angles,gtsam::Pose3())); | 
					
						
							|  |  |  |   collector_ForwardKinematics.insert(self); | 
					
						
							|  |  |  |   out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL); | 
					
						
							|  |  |  |   *reinterpret_cast<Shared**> (mxGetData(out[0])) = self; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void ForwardKinematics_deconstructor_66(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-06-17 01:51:43 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<ForwardKinematics> Shared; | 
					
						
							| 
									
										
										
										
											2021-06-17 01:51:43 +08:00
										 |  |  |   checkArguments("delete_ForwardKinematics",nargout,nargin,1); | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0])); | 
					
						
							|  |  |  |   Collector_ForwardKinematics::iterator item; | 
					
						
							|  |  |  |   item = collector_ForwardKinematics.find(self); | 
					
						
							|  |  |  |   if(item != collector_ForwardKinematics.end()) { | 
					
						
							|  |  |  |     collector_ForwardKinematics.erase(item); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2021-12-18 04:55:42 +08:00
										 |  |  |   delete self; | 
					
						
							| 
									
										
										
										
											2021-06-17 01:51:43 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void TemplatedConstructor_collectorInsertAndMakeBase_67(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<TemplatedConstructor> Shared; | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0])); | 
					
						
							|  |  |  |   collector_TemplatedConstructor.insert(self); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void TemplatedConstructor_constructor_68(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<TemplatedConstructor> Shared; | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   Shared *self = new Shared(new TemplatedConstructor()); | 
					
						
							|  |  |  |   collector_TemplatedConstructor.insert(self); | 
					
						
							|  |  |  |   out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL); | 
					
						
							|  |  |  |   *reinterpret_cast<Shared**> (mxGetData(out[0])) = self; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void TemplatedConstructor_constructor_69(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<TemplatedConstructor> Shared; | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   string& arg = *unwrap_shared_ptr< string >(in[0], "ptr_string"); | 
					
						
							|  |  |  |   Shared *self = new Shared(new TemplatedConstructor(arg)); | 
					
						
							|  |  |  |   collector_TemplatedConstructor.insert(self); | 
					
						
							|  |  |  |   out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL); | 
					
						
							|  |  |  |   *reinterpret_cast<Shared**> (mxGetData(out[0])) = self; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void TemplatedConstructor_constructor_70(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<TemplatedConstructor> Shared; | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   int arg = unwrap< int >(in[0]); | 
					
						
							|  |  |  |   Shared *self = new Shared(new TemplatedConstructor(arg)); | 
					
						
							|  |  |  |   collector_TemplatedConstructor.insert(self); | 
					
						
							|  |  |  |   out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL); | 
					
						
							|  |  |  |   *reinterpret_cast<Shared**> (mxGetData(out[0])) = self; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void TemplatedConstructor_constructor_71(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<TemplatedConstructor> Shared; | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   double arg = unwrap< double >(in[0]); | 
					
						
							|  |  |  |   Shared *self = new Shared(new TemplatedConstructor(arg)); | 
					
						
							|  |  |  |   collector_TemplatedConstructor.insert(self); | 
					
						
							|  |  |  |   out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL); | 
					
						
							|  |  |  |   *reinterpret_cast<Shared**> (mxGetData(out[0])) = self; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  | void TemplatedConstructor_deconstructor_72(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<TemplatedConstructor> Shared; | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  |   checkArguments("delete_TemplatedConstructor",nargout,nargin,1); | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0])); | 
					
						
							|  |  |  |   Collector_TemplatedConstructor::iterator item; | 
					
						
							|  |  |  |   item = collector_TemplatedConstructor.find(self); | 
					
						
							|  |  |  |   if(item != collector_TemplatedConstructor.end()) { | 
					
						
							|  |  |  |     collector_TemplatedConstructor.erase(item); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2021-12-18 04:55:42 +08:00
										 |  |  |   delete self; | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-17 04:04:09 +08:00
										 |  |  | void FastSet_collectorInsertAndMakeBase_73(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							|  |  |  |   typedef std::shared_ptr<FastSet> Shared; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0])); | 
					
						
							|  |  |  |   collector_FastSet.insert(self); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void FastSet_constructor_74(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							|  |  |  |   typedef std::shared_ptr<FastSet> Shared; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   Shared *self = new Shared(new FastSet()); | 
					
						
							|  |  |  |   collector_FastSet.insert(self); | 
					
						
							|  |  |  |   out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL); | 
					
						
							|  |  |  |   *reinterpret_cast<Shared**> (mxGetData(out[0])) = self; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void FastSet_deconstructor_75(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   typedef std::shared_ptr<FastSet> Shared; | 
					
						
							|  |  |  |   checkArguments("delete_FastSet",nargout,nargin,1); | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0])); | 
					
						
							|  |  |  |   Collector_FastSet::iterator item; | 
					
						
							|  |  |  |   item = collector_FastSet.find(self); | 
					
						
							|  |  |  |   if(item != collector_FastSet.end()) { | 
					
						
							|  |  |  |     collector_FastSet.erase(item); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |   delete self; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-28 23:03:51 +08:00
										 |  |  | void HessianFactor_collectorInsertAndMakeBase_76(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							|  |  |  |   typedef std::shared_ptr<HessianFactor> Shared; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0])); | 
					
						
							|  |  |  |   collector_HessianFactor.insert(self); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   typedef std::shared_ptr<gtsam::GaussianFactor> SharedBase; | 
					
						
							|  |  |  |   out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL); | 
					
						
							|  |  |  |   *reinterpret_cast<SharedBase**>(mxGetData(out[0])) = new SharedBase(*self); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void HessianFactor_upcastFromVoid_77(int nargout, mxArray *out[], int nargin, const mxArray *in[]) { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							|  |  |  |   typedef std::shared_ptr<HessianFactor> Shared; | 
					
						
							|  |  |  |   std::shared_ptr<void> *asVoid = *reinterpret_cast<std::shared_ptr<void>**> (mxGetData(in[0])); | 
					
						
							|  |  |  |   out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL); | 
					
						
							|  |  |  |   Shared *self = new Shared(std::static_pointer_cast<HessianFactor>(*asVoid)); | 
					
						
							|  |  |  |   *reinterpret_cast<Shared**>(mxGetData(out[0])) = self; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void HessianFactor_constructor_78(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							|  |  |  |   typedef std::shared_ptr<HessianFactor> Shared; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   gtsam::KeyVector& js = *unwrap_shared_ptr< gtsam::KeyVector >(in[0], "ptr_gtsamKeyVector"); | 
					
						
							|  |  |  |   std::vector<Matrix>& Gs = *unwrap_shared_ptr< std::vector<Matrix> >(in[1], "ptr_stdvectorMatrix"); | 
					
						
							|  |  |  |   std::vector<Vector>& gs = *unwrap_shared_ptr< std::vector<Vector> >(in[2], "ptr_stdvectorVector"); | 
					
						
							|  |  |  |   double f = unwrap< double >(in[3]); | 
					
						
							|  |  |  |   Shared *self = new Shared(new HessianFactor(js,Gs,gs,f)); | 
					
						
							|  |  |  |   collector_HessianFactor.insert(self); | 
					
						
							|  |  |  |   out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL); | 
					
						
							|  |  |  |   *reinterpret_cast<Shared**> (mxGetData(out[0])) = self; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   typedef std::shared_ptr<gtsam::GaussianFactor> SharedBase; | 
					
						
							|  |  |  |   out[1] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL); | 
					
						
							|  |  |  |   *reinterpret_cast<SharedBase**>(mxGetData(out[1])) = new SharedBase(*self); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void HessianFactor_deconstructor_79(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   typedef std::shared_ptr<HessianFactor> Shared; | 
					
						
							|  |  |  |   checkArguments("delete_HessianFactor",nargout,nargin,1); | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0])); | 
					
						
							|  |  |  |   Collector_HessianFactor::iterator item; | 
					
						
							|  |  |  |   item = collector_HessianFactor.find(self); | 
					
						
							|  |  |  |   if(item != collector_HessianFactor.end()) { | 
					
						
							|  |  |  |     collector_HessianFactor.erase(item); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |   delete self; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void MyFactorPosePoint2_collectorInsertAndMakeBase_80(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<MyFactor<gtsam::Pose2, gtsam::Matrix>> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0])); | 
					
						
							|  |  |  |   collector_MyFactorPosePoint2.insert(self); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-28 23:03:51 +08:00
										 |  |  | void MyFactorPosePoint2_constructor_81(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   mexAtExit(&_deleteAllObjects); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<MyFactor<gtsam::Pose2, gtsam::Matrix>> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   size_t key1 = unwrap< size_t >(in[0]); | 
					
						
							|  |  |  |   size_t key2 = unwrap< size_t >(in[1]); | 
					
						
							|  |  |  |   double measured = unwrap< double >(in[2]); | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   std::shared_ptr<gtsam::noiseModel::Base> noiseModel = unwrap_shared_ptr< gtsam::noiseModel::Base >(in[3], "ptr_gtsamnoiseModelBase"); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |   Shared *self = new Shared(new MyFactor<gtsam::Pose2, gtsam::Matrix>(key1,key2,measured,noiseModel)); | 
					
						
							|  |  |  |   collector_MyFactorPosePoint2.insert(self); | 
					
						
							|  |  |  |   out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL); | 
					
						
							|  |  |  |   *reinterpret_cast<Shared**> (mxGetData(out[0])) = self; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-28 23:03:51 +08:00
										 |  |  | void MyFactorPosePoint2_deconstructor_82(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2023-02-17 16:13:23 +08:00
										 |  |  |   typedef std::shared_ptr<MyFactor<gtsam::Pose2, gtsam::Matrix>> Shared; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |   checkArguments("delete_MyFactorPosePoint2",nargout,nargin,1); | 
					
						
							|  |  |  |   Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0])); | 
					
						
							|  |  |  |   Collector_MyFactorPosePoint2::iterator item; | 
					
						
							|  |  |  |   item = collector_MyFactorPosePoint2.find(self); | 
					
						
							|  |  |  |   if(item != collector_MyFactorPosePoint2.end()) { | 
					
						
							|  |  |  |     collector_MyFactorPosePoint2.erase(item); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2021-12-18 04:55:42 +08:00
										 |  |  |   delete self; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-28 23:03:51 +08:00
										 |  |  | void MyFactorPosePoint2_print_83(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-04-17 09:07:09 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("print",nargout,nargin-1,2); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<MyFactor<gtsam::Pose2, gtsam::Matrix>>(in[0], "ptr_MyFactorPosePoint2"); | 
					
						
							|  |  |  |   string& s = *unwrap_shared_ptr< string >(in[1], "ptr_string"); | 
					
						
							|  |  |  |   gtsam::KeyFormatter& keyFormatter = *unwrap_shared_ptr< gtsam::KeyFormatter >(in[2], "ptr_gtsamKeyFormatter"); | 
					
						
							|  |  |  |   obj->print(s,keyFormatter); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-28 23:03:51 +08:00
										 |  |  | void MyFactorPosePoint2_print_84(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-12-13 21:53:49 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("print",nargout,nargin-1,1); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<MyFactor<gtsam::Pose2, gtsam::Matrix>>(in[0], "ptr_MyFactorPosePoint2"); | 
					
						
							|  |  |  |   string& s = *unwrap_shared_ptr< string >(in[1], "ptr_string"); | 
					
						
							|  |  |  |   obj->print(s,gtsam::DefaultKeyFormatter); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-28 23:03:51 +08:00
										 |  |  | void MyFactorPosePoint2_print_85(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							| 
									
										
										
										
											2021-12-13 21:53:49 +08:00
										 |  |  | { | 
					
						
							|  |  |  |   checkArguments("print",nargout,nargin-1,0); | 
					
						
							|  |  |  |   auto obj = unwrap_shared_ptr<MyFactor<gtsam::Pose2, gtsam::Matrix>>(in[0], "ptr_MyFactorPosePoint2"); | 
					
						
							|  |  |  |   obj->print("factor: ",gtsam::DefaultKeyFormatter); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   mstream mout; | 
					
						
							|  |  |  |   std::streambuf *outbuf = std::cout.rdbuf(&mout); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   _class_RTTIRegister(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   int id = unwrap<int>(in[0]); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   try { | 
					
						
							|  |  |  |     switch(id) { | 
					
						
							|  |  |  |     case 0: | 
					
						
							|  |  |  |       FunRange_collectorInsertAndMakeBase_0(nargout, out, nargin-1, in+1); | 
					
						
							|  |  |  |       break; | 
					
						
							|  |  |  |     case 1: | 
					
						
							|  |  |  |       FunRange_constructor_1(nargout, out, nargin-1, in+1); | 
					
						
							|  |  |  |       break; | 
					
						
							|  |  |  |     case 2: | 
					
						
							|  |  |  |       FunRange_deconstructor_2(nargout, out, nargin-1, in+1); | 
					
						
							|  |  |  |       break; | 
					
						
							|  |  |  |     case 3: | 
					
						
							|  |  |  |       FunRange_range_3(nargout, out, nargin-1, in+1); | 
					
						
							|  |  |  |       break; | 
					
						
							|  |  |  |     case 4: | 
					
						
							|  |  |  |       FunRange_create_4(nargout, out, nargin-1, in+1); | 
					
						
							|  |  |  |       break; | 
					
						
							|  |  |  |     case 5: | 
					
						
							|  |  |  |       FunDouble_collectorInsertAndMakeBase_5(nargout, out, nargin-1, in+1); | 
					
						
							|  |  |  |       break; | 
					
						
							|  |  |  |     case 6: | 
					
						
							|  |  |  |       FunDouble_deconstructor_6(nargout, out, nargin-1, in+1); | 
					
						
							|  |  |  |       break; | 
					
						
							|  |  |  |     case 7: | 
					
						
							| 
									
										
										
										
											2021-03-26 01:32:38 +08:00
										 |  |  |       FunDouble_multiTemplatedMethod_7(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 8: | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  |       FunDouble_sets_8(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 9: | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  |       FunDouble_templatedMethod_9(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 10: | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  |       FunDouble_staticMethodWithThis_10(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 11: | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  |       FunDouble_templatedStaticMethodInt_11(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 12: | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  |       Test_collectorInsertAndMakeBase_12(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 13: | 
					
						
							| 
									
										
										
										
											2021-10-26 00:46:06 +08:00
										 |  |  |       Test_constructor_13(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 14: | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  |       Test_constructor_14(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 15: | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  |       Test_deconstructor_15(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 16: | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  |       Test_arg_EigenConstRef_16(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 17: | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  |       Test_create_MixedPtrs_17(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 18: | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  |       Test_create_ptrs_18(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 19: | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  |       Test_get_container_19(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 20: | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  |       Test_lambda_20(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 21: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_markdown_21(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 22: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_markdown_22(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 23: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_print_23(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 24: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_return_Point2Ptr_24(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 25: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_return_Test_25(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 26: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_return_TestPtr_26(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 27: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_return_bool_27(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 28: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_return_double_28(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 29: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_return_field_29(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 30: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_return_int_30(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 31: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_return_matrix1_31(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 32: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_return_matrix2_32(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 33: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_return_pair_33(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 34: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_return_pair_34(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 35: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_return_ptrs_35(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 36: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_return_size_t_36(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 37: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_return_string_37(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 38: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_return_vector1_38(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 39: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_return_vector2_39(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 40: | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  |       Test_set_container_40(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 41: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_set_container_41(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 42: | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       Test_set_container_42(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 43: | 
					
						
							| 
									
										
										
										
											2022-10-29 01:10:19 +08:00
										 |  |  |       Test_get_model_ptr_43(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 44: | 
					
						
							| 
									
										
										
										
											2022-10-29 01:10:19 +08:00
										 |  |  |       Test_set_model_ptr_44(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 45: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       Test_get_value_45(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 46: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       Test_set_value_46(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 47: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       Test_get_name_47(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 48: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       Test_set_name_48(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 49: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       PrimitiveRefDouble_collectorInsertAndMakeBase_49(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-26 01:32:38 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 50: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       PrimitiveRefDouble_constructor_50(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-04-02 11:20:12 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 51: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       PrimitiveRefDouble_deconstructor_51(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-04-02 11:20:12 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 52: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       PrimitiveRefDouble_Brutal_52(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-04-02 11:20:12 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 53: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       MyVector3_collectorInsertAndMakeBase_53(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-04-02 11:20:12 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 54: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       MyVector3_constructor_54(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |       break; | 
					
						
							| 
									
										
										
										
											2021-04-17 09:07:09 +08:00
										 |  |  |     case 55: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       MyVector3_deconstructor_55(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-06-17 01:51:43 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 56: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       MyVector12_collectorInsertAndMakeBase_56(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-06-17 01:51:43 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 57: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       MyVector12_constructor_57(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-06-17 01:51:43 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 58: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       MyVector12_deconstructor_58(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-06-17 01:51:43 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 59: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       MultipleTemplatesIntDouble_collectorInsertAndMakeBase_59(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 60: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       MultipleTemplatesIntDouble_deconstructor_60(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 61: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       MultipleTemplatesIntFloat_collectorInsertAndMakeBase_61(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 62: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       MultipleTemplatesIntFloat_deconstructor_62(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 63: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       ForwardKinematics_collectorInsertAndMakeBase_63(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 64: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       ForwardKinematics_constructor_64(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-09-18 14:17:47 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 65: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       ForwardKinematics_constructor_65(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-10-26 00:46:06 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 66: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       ForwardKinematics_deconstructor_66(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-12-07 00:01:43 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 67: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       TemplatedConstructor_collectorInsertAndMakeBase_67(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-12-13 21:53:49 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 68: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       TemplatedConstructor_constructor_68(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-12-13 21:53:49 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 69: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       TemplatedConstructor_constructor_69(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-12-13 21:53:49 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 70: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       TemplatedConstructor_constructor_70(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-04-17 09:07:09 +08:00
										 |  |  |       break; | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |     case 71: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       TemplatedConstructor_constructor_71(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 72: | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       TemplatedConstructor_deconstructor_72(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2021-12-25 22:12:24 +08:00
										 |  |  |       break; | 
					
						
							| 
									
										
										
										
											2022-10-29 01:10:19 +08:00
										 |  |  |     case 73: | 
					
						
							| 
									
										
										
										
											2024-01-17 04:04:09 +08:00
										 |  |  |       FastSet_collectorInsertAndMakeBase_73(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2022-10-29 01:10:19 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 74: | 
					
						
							| 
									
										
										
										
											2024-01-17 04:04:09 +08:00
										 |  |  |       FastSet_constructor_74(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 75: | 
					
						
							| 
									
										
										
										
											2024-01-17 04:04:09 +08:00
										 |  |  |       FastSet_deconstructor_75(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 76: | 
					
						
							| 
									
										
										
										
											2024-06-28 23:03:51 +08:00
										 |  |  |       HessianFactor_collectorInsertAndMakeBase_76(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 77: | 
					
						
							| 
									
										
										
										
											2024-06-28 23:03:51 +08:00
										 |  |  |       HessianFactor_upcastFromVoid_77(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2022-10-29 05:56:52 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 78: | 
					
						
							| 
									
										
										
										
											2024-06-28 23:03:51 +08:00
										 |  |  |       HessianFactor_constructor_78(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2024-01-17 04:04:09 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 79: | 
					
						
							| 
									
										
										
										
											2024-06-28 23:03:51 +08:00
										 |  |  |       HessianFactor_deconstructor_79(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2024-01-17 04:04:09 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 80: | 
					
						
							| 
									
										
										
										
											2024-06-28 23:03:51 +08:00
										 |  |  |       MyFactorPosePoint2_collectorInsertAndMakeBase_80(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2024-01-17 04:04:09 +08:00
										 |  |  |       break; | 
					
						
							|  |  |  |     case 81: | 
					
						
							| 
									
										
										
										
											2024-06-28 23:03:51 +08:00
										 |  |  |       MyFactorPosePoint2_constructor_81(nargout, out, nargin-1, in+1); | 
					
						
							|  |  |  |       break; | 
					
						
							|  |  |  |     case 82: | 
					
						
							|  |  |  |       MyFactorPosePoint2_deconstructor_82(nargout, out, nargin-1, in+1); | 
					
						
							|  |  |  |       break; | 
					
						
							|  |  |  |     case 83: | 
					
						
							|  |  |  |       MyFactorPosePoint2_print_83(nargout, out, nargin-1, in+1); | 
					
						
							|  |  |  |       break; | 
					
						
							|  |  |  |     case 84: | 
					
						
							|  |  |  |       MyFactorPosePoint2_print_84(nargout, out, nargin-1, in+1); | 
					
						
							|  |  |  |       break; | 
					
						
							|  |  |  |     case 85: | 
					
						
							|  |  |  |       MyFactorPosePoint2_print_85(nargout, out, nargin-1, in+1); | 
					
						
							| 
									
										
										
										
											2022-10-29 01:10:19 +08:00
										 |  |  |       break; | 
					
						
							| 
									
										
										
										
											2021-03-25 12:49:51 +08:00
										 |  |  |     } | 
					
						
							|  |  |  |   } catch(const std::exception& e) { | 
					
						
							|  |  |  |     mexErrMsgTxt(("Exception from gtsam:\n" + std::string(e.what()) + "\n").c_str()); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   std::cout.rdbuf(outbuf); | 
					
						
							|  |  |  | } |