| 
									
										
										
										
											2012-02-07 03:45:40 +08:00
										 |  |  | // automatically generated by wrap
 | 
					
						
							| 
									
										
										
										
											2011-12-07 11:05:33 +08:00
										 |  |  | #include <wrap/matlab.h>
 | 
					
						
							| 
									
										
										
										
											2011-12-09 23:44:35 +08:00
										 |  |  | #include <folder/path/to/Test.h>
 | 
					
						
							| 
									
										
										
										
											2011-12-10 04:29:47 +08:00
										 |  |  | using namespace geometry; | 
					
						
							| 
									
										
										
										
											2011-12-07 11:05:33 +08:00
										 |  |  | void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   checkArguments("create_MixedPtrs",nargout,nargin-1,0); | 
					
						
							| 
									
										
										
										
											2012-05-30 03:29:29 +08:00
										 |  |  |   boost::shared_ptr<Test> self = unwrap_shared_ptr< Test >(in[0],"Test"); | 
					
						
							|  |  |  |   pair< Test, boost::shared_ptr<Test> > result = self->create_MixedPtrs(); | 
					
						
							| 
									
										
										
										
											2011-12-07 11:05:33 +08:00
										 |  |  |   out[0] = wrap_shared_ptr(make_shared< Test >(result.first),"Test"); | 
					
						
							|  |  |  |   out[1] = wrap_shared_ptr(result.second,"Test"); | 
					
						
							|  |  |  | } |