2012-09-09 03:51:23 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								%class ClassA, see Doxygen page for details
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								%at http://research.cc.gatech.edu/borg/sites/edu.borg/html/index.html
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								%
							 | 
						
					
						
							
								
									
										
										
										
											2012-08-28 02:10:51 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								%-------Constructors-------
							 | 
						
					
						
							
								
									
										
										
										
											2012-09-04 06:48:08 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								%ClassA()
							 | 
						
					
						
							
								
									
										
										
										
											2012-09-09 03:51:23 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								%
							 | 
						
					
						
							
								
									
										
										
										
											2012-08-28 02:10:51 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								%-------Methods-------
							 | 
						
					
						
							
								
									
										
										
										
											2012-09-04 06:48:08 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								%memberFunction() : returns double
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								%nsArg(ClassB arg) : returns int
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								%nsReturn(double q) : returns ns2::ns3::ClassB
							 | 
						
					
						
							
								
									
										
										
										
											2012-09-09 03:51:23 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								%
							 | 
						
					
						
							
								
									
										
										
										
											2012-08-28 02:10:51 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								%-------Static Methods-------
							 | 
						
					
						
							
								
									
										
										
										
											2012-09-04 06:48:08 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								%afunction() : returns double
							 | 
						
					
						
							
								
									
										
										
										
											2012-08-28 02:10:51 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								%
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-18 23:47:06 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								classdef ClassA < handle
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-09 04:23:47 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								  properties
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-10 22:21:58 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    ptr_ns2ClassA = 0
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-09 04:23:47 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								  end
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								  methods
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-18 23:47:06 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    function obj = ClassA(varargin)
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-09 04:23:47 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      if nargin == 2 && isa(varargin{1}, 'uint64') && varargin{1} == uint64(5139824614673773682)
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-10 22:21:58 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        my_ptr = varargin{2};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        testNamespaces_wrapper(6, my_ptr);
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-09 04:23:47 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      elseif nargin == 0
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-10 22:21:58 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        my_ptr = testNamespaces_wrapper(7);
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-09 04:23:47 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      else
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-18 23:47:06 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        error('Arguments do not match any overload of ns2.ClassA constructor');
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-09 04:23:47 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      end
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-10 22:21:58 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      obj.ptr_ns2ClassA = my_ptr;
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-09 04:23:47 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    end
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    function delete(obj)
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-10 22:21:58 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      testNamespaces_wrapper(8, obj.ptr_ns2ClassA);
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-09 04:23:47 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    end
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    function display(obj), obj.print(''); end
							 | 
						
					
						
							
								
									
										
										
										
											2012-08-30 04:27:10 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    %DISPLAY Calls print on the object
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-09 04:23:47 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    function disp(obj), obj.display; end
							 | 
						
					
						
							
								
									
										
										
										
											2012-08-30 04:27:10 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    %DISP Calls print on the object
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-10 22:21:58 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    function varargout = memberFunction(this, varargin)
							 | 
						
					
						
							
								
									
										
										
										
											2012-08-30 04:27:10 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								      % MEMBERFUNCTION usage: memberFunction() : returns double
							 | 
						
					
						
							
								
									
										
										
										
											2012-08-28 02:10:51 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								      % Doxygen can be found at http://research.cc.gatech.edu/borg/sites/edu.borg/html/index.html
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      % 
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      % Method Overloads
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      % memberFunction()
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-09 04:23:47 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      if length(varargin) == 0
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-10 22:21:58 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        varargout{1} = testNamespaces_wrapper(9, this, varargin{:});
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-09 04:23:47 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      else
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-18 23:47:06 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        error('Arguments do not match any overload of function ns2.ClassA.memberFunction');
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-09 04:23:47 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      end
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    end
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-10 22:21:58 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    function varargout = nsArg(this, varargin)
							 | 
						
					
						
							
								
									
										
										
										
											2012-08-30 04:27:10 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								      % NSARG usage: nsArg(ClassB arg) : returns int
							 | 
						
					
						
							
								
									
										
										
										
											2012-08-28 02:10:51 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								      % Doxygen can be found at http://research.cc.gatech.edu/borg/sites/edu.borg/html/index.html
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      % 
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      % Method Overloads
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      % nsArg(ClassB arg)
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-18 23:47:06 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      if length(varargin) == 1 && isa(varargin{1},'ns1.ClassB')
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-10 22:21:58 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        varargout{1} = testNamespaces_wrapper(10, this, varargin{:});
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-09 04:23:47 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      else
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-18 23:47:06 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        error('Arguments do not match any overload of function ns2.ClassA.nsArg');
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-09 04:23:47 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      end
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    end
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-10 22:21:58 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    function varargout = nsReturn(this, varargin)
							 | 
						
					
						
							
								
									
										
										
										
											2012-08-30 04:27:10 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								      % NSRETURN usage: nsReturn(double q) : returns ns2::ns3::ClassB
							 | 
						
					
						
							
								
									
										
										
										
											2012-08-28 02:10:51 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								      % Doxygen can be found at http://research.cc.gatech.edu/borg/sites/edu.borg/html/index.html
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      % 
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      % Method Overloads
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      % nsReturn(double q)
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-09 04:23:47 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      if length(varargin) == 1 && isa(varargin{1},'double')
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-10 22:21:58 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        varargout{1} = testNamespaces_wrapper(11, this, varargin{:});
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-09 04:23:47 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      else
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-18 23:47:06 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        error('Arguments do not match any overload of function ns2.ClassA.nsReturn');
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-09 04:23:47 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      end
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    end
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								  end
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								  methods(Static = true)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    function varargout = Afunction(varargin)
							 | 
						
					
						
							
								
									
										
										
										
											2012-08-30 04:27:10 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								      % AFUNCTION usage: afunction() : returns double
							 | 
						
					
						
							
								
									
										
										
										
											2012-08-28 02:10:51 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								      % Doxygen can be found at http://research.cc.gatech.edu/borg/sites/edu.borg/html/index.html
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      % 
							 | 
						
					
						
							
								
									
										
										
										
											2012-08-29 05:44:45 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								      % Usage
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      % AFUNCTION()
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-09 04:23:47 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      if length(varargin) == 0
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        varargout{1} = testNamespaces_wrapper(12, varargin{:});
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      else
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-18 23:47:06 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        error('Arguments do not match any overload of function ns2.ClassA.Afunction');
							 | 
						
					
						
							
								
									
										
										
										
											2012-07-09 04:23:47 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      end
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    end
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								  end
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								end
							 |