11 lines
		
	
	
		
			355 B
		
	
	
	
		
			C++
		
	
	
		
		
			
		
	
	
			11 lines
		
	
	
		
			355 B
		
	
	
	
		
			C++
		
	
	
|  | // automatically generated by wrap on 2010-Feb-23
 | ||
|  | #include <wrap/matlab.h>
 | ||
|  | #include <Point2.h>
 | ||
|  | void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[]) | ||
|  | { | ||
|  |   checkArguments("dim",nargout,nargin-1,0); | ||
|  |   shared_ptr<Point2> self = unwrap_shared_ptr< Point2 >(in[0],"Point2"); | ||
|  |   int result = self->dim(); | ||
|  |   out[0] = wrap< int >(result); | ||
|  | } |