| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-29 03:26:19 +08:00
										 |  |  | from gtsam_eigency.core cimport * | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  | from libcpp.string cimport string | 
					
						
							|  |  |  | from libcpp.vector cimport vector | 
					
						
							|  |  |  | from libcpp.pair cimport pair | 
					
						
							|  |  |  | from libcpp.set cimport set | 
					
						
							|  |  |  | from libcpp.map cimport map | 
					
						
							|  |  |  | from libcpp cimport bool | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | cdef extern from "boost/shared_ptr.hpp" namespace "boost": | 
					
						
							|  |  |  |     cppclass shared_ptr[T]: | 
					
						
							|  |  |  |         shared_ptr() | 
					
						
							|  |  |  |         shared_ptr(T*) | 
					
						
							|  |  |  |         T* get() | 
					
						
							| 
									
										
										
										
											2017-08-16 01:46:32 +08:00
										 |  |  |         long use_count() const | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  |         T& operator*() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     cdef shared_ptr[T] dynamic_pointer_cast[T,U](const shared_ptr[U]& r) | 
					
						
							|  |  |  |     cdef shared_ptr[T] make_shared[T](const T& r) | 
					
						
							| 
									
										
										
										
											2017-08-16 01:46:32 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  | cdef extern from "gtsam/geometry/Point2.h" namespace "gtsam": | 
					
						
							|  |  |  |     cdef cppclass CPoint2 "gtsam::Point2": | 
					
						
							|  |  |  |         CPoint2() except + | 
					
						
							|  |  |  |         CPoint2(double x, double y) except + | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-16 01:46:32 +08:00
										 |  |  |         void argChar(char a) except + | 
					
						
							|  |  |  |         void argUChar(unsigned char a) except + | 
					
						
							|  |  |  |         int dim() except + | 
					
						
							|  |  |  |         void eigenArguments(const VectorXd& v, const MatrixXd& m) except + | 
					
						
							|  |  |  |         char returnChar() except + | 
					
						
							|  |  |  |         CVectorNotEigen vectorConfusion() except + | 
					
						
							|  |  |  |         double x() except + | 
					
						
							|  |  |  |         double y() except + | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | cdef class Point2: | 
					
						
							| 
									
										
										
										
											2017-08-16 01:46:32 +08:00
										 |  |  |     cdef shared_ptr[CPoint2] CPoint2_ | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  |     @staticmethod | 
					
						
							|  |  |  |     cdef Point2 cyCreateFromShared(const shared_ptr[CPoint2]& other) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | cdef extern from "gtsam/geometry/Point3.h" namespace "gtsam": | 
					
						
							|  |  |  |     cdef cppclass CPoint3 "gtsam::Point3": | 
					
						
							|  |  |  |         CPoint3(double x, double y, double z) except + | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         @staticmethod | 
					
						
							|  |  |  |         CPoint3 StaticFunctionRet "StaticFunctionRet"(double z) except + | 
					
						
							|  |  |  |         @staticmethod | 
					
						
							|  |  |  |         double staticFunction "staticFunction"() except + | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-16 01:46:32 +08:00
										 |  |  |         double norm() except + | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | cdef class Point3: | 
					
						
							| 
									
										
										
										
											2017-08-16 01:46:32 +08:00
										 |  |  |     cdef shared_ptr[CPoint3] CPoint3_ | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  |     @staticmethod | 
					
						
							|  |  |  |     cdef Point3 cyCreateFromShared(const shared_ptr[CPoint3]& other) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-16 01:46:32 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  | cdef extern from "folder/path/to/Test.h": | 
					
						
							|  |  |  |     cdef cppclass CTest "Test": | 
					
						
							|  |  |  |         CTest() except + | 
					
						
							|  |  |  |         CTest(double a, const MatrixXd& b) except + | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-16 01:46:32 +08:00
										 |  |  |         void arg_EigenConstRef(const MatrixXd& value) except + | 
					
						
							|  |  |  |         pair[CTest,shared_ptr[CTest]] create_MixedPtrs() except + | 
					
						
							|  |  |  |         pair[shared_ptr[CTest],shared_ptr[CTest]] create_ptrs() except + | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  |         void print_ "print"() except + | 
					
						
							| 
									
										
										
										
											2017-08-16 01:46:32 +08:00
										 |  |  |         shared_ptr[CPoint2] return_Point2Ptr(bool value) except + | 
					
						
							|  |  |  |         CTest return_Test(shared_ptr[CTest]& value) except + | 
					
						
							|  |  |  |         shared_ptr[CTest] return_TestPtr(shared_ptr[CTest]& value) except + | 
					
						
							|  |  |  |         bool return_bool(bool value) except + | 
					
						
							|  |  |  |         double return_double(double value) except + | 
					
						
							|  |  |  |         bool return_field(const CTest& t) except + | 
					
						
							|  |  |  |         int return_int(int value) except + | 
					
						
							|  |  |  |         MatrixXd return_matrix1(const MatrixXd& value) except + | 
					
						
							|  |  |  |         MatrixXd return_matrix2(const MatrixXd& value) except + | 
					
						
							|  |  |  |         pair[VectorXd,MatrixXd] return_pair(const VectorXd& v, const MatrixXd& A) except + | 
					
						
							|  |  |  |         pair[shared_ptr[CTest],shared_ptr[CTest]] return_ptrs(shared_ptr[CTest]& p1, shared_ptr[CTest]& p2) except + | 
					
						
							|  |  |  |         size_t return_size_t(size_t value) except + | 
					
						
							|  |  |  |         string return_string(string value) except + | 
					
						
							|  |  |  |         VectorXd return_vector1(const VectorXd& value) except + | 
					
						
							|  |  |  |         VectorXd return_vector2(const VectorXd& value) except + | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | cdef class Test: | 
					
						
							| 
									
										
										
										
											2017-08-16 01:46:32 +08:00
										 |  |  |     cdef shared_ptr[CTest] CTest_ | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  |     @staticmethod | 
					
						
							|  |  |  |     cdef Test cyCreateFromShared(const shared_ptr[CTest]& other) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | cdef extern from "folder/path/to/Test.h": | 
					
						
							|  |  |  |     cdef cppclass CMyBase "MyBase": | 
					
						
							|  |  |  |         pass | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | cdef class MyBase: | 
					
						
							| 
									
										
										
										
											2017-08-16 01:46:32 +08:00
										 |  |  |     cdef shared_ptr[CMyBase] CMyBase_ | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  |     @staticmethod | 
					
						
							|  |  |  |     cdef MyBase cyCreateFromShared(const shared_ptr[CMyBase]& other) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | cdef extern from "folder/path/to/Test.h": | 
					
						
							|  |  |  |     cdef cppclass CMyTemplate "MyTemplate"[T](CMyBase): | 
					
						
							|  |  |  |         CMyTemplate() except + | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-16 01:46:32 +08:00
										 |  |  |         void accept_T(const T& value) except + | 
					
						
							|  |  |  |         void accept_Tptr(shared_ptr[T]& value) except + | 
					
						
							|  |  |  |         pair[T,shared_ptr[T]] create_MixedPtrs() except + | 
					
						
							|  |  |  |         pair[shared_ptr[T],shared_ptr[T]] create_ptrs() except + | 
					
						
							|  |  |  |         T return_T(shared_ptr[T]& value) except + | 
					
						
							|  |  |  |         shared_ptr[T] return_Tptr(shared_ptr[T]& value) except + | 
					
						
							|  |  |  |         pair[shared_ptr[T],shared_ptr[T]] return_ptrs(shared_ptr[T]& p1, shared_ptr[T]& p2) except + | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  |         ARG templatedMethod[ARG](const ARG& t) except + | 
					
						
							| 
									
										
										
										
											2017-08-16 01:46:32 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  | ctypedef CMyTemplate[CPoint2] CMyTemplatePoint2 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | cdef class MyTemplatePoint2(MyBase): | 
					
						
							| 
									
										
										
										
											2017-08-16 01:46:32 +08:00
										 |  |  |     cdef shared_ptr[CMyTemplatePoint2] CMyTemplatePoint2_ | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  |     @staticmethod | 
					
						
							|  |  |  |     cdef MyTemplatePoint2 cyCreateFromShared(const shared_ptr[CMyTemplatePoint2]& other) | 
					
						
							| 
									
										
										
										
											2017-08-16 01:46:32 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  | ctypedef CMyTemplate[MatrixXd] CMyTemplateMatrix | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | cdef class MyTemplateMatrix(MyBase): | 
					
						
							| 
									
										
										
										
											2017-08-16 01:46:32 +08:00
										 |  |  |     cdef shared_ptr[CMyTemplateMatrix] CMyTemplateMatrix_ | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  |     @staticmethod | 
					
						
							|  |  |  |     cdef MyTemplateMatrix cyCreateFromShared(const shared_ptr[CMyTemplateMatrix]& other) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | cdef extern from "folder/path/to/Test.h": | 
					
						
							|  |  |  |     cdef cppclass CMyFactor "MyFactor"[POSE,POINT]: | 
					
						
							|  |  |  |         CMyFactor(size_t key1, size_t key2, double measured, const shared_ptr[CnoiseModel_Base]& noiseModel) except + | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-16 01:46:32 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  | ctypedef CMyFactor[CPose2, MatrixXd] CMyFactorPosePoint2 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | cdef class MyFactorPosePoint2: | 
					
						
							| 
									
										
										
										
											2017-08-16 01:46:32 +08:00
										 |  |  |     cdef shared_ptr[CMyFactorPosePoint2] CMyFactorPosePoint2_ | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  |     @staticmethod | 
					
						
							|  |  |  |     cdef MyFactorPosePoint2 cyCreateFromShared(const shared_ptr[CMyFactorPosePoint2]& other) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | cdef extern from "folder/path/to/Test.h": | 
					
						
							|  |  |  |     cdef cppclass CMyVector "MyVector"[N]: | 
					
						
							|  |  |  |         CMyVector() except + | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | cdef extern from "folder/path/to/Test.h" namespace "": | 
					
						
							| 
									
										
										
										
											2019-07-11 03:56:32 +08:00
										 |  |  |         VectorXd pxd_aGlobalFunction "aGlobalFunction"() except + | 
					
						
							| 
									
										
										
										
											2017-03-19 06:35:28 +08:00
										 |  |  | cdef extern from "folder/path/to/Test.h" namespace "": | 
					
						
							| 
									
										
										
										
											2019-07-11 03:56:32 +08:00
										 |  |  |         VectorXd pxd_overloadedGlobalFunction "overloadedGlobalFunction"(int a) except + | 
					
						
							|  |  |  |         VectorXd pxd_overloadedGlobalFunction "overloadedGlobalFunction"(int a, double b) except + |