73 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Matlab
		
	
	
			
		
		
	
	
			73 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Matlab
		
	
	
%class ClassA, see Doxygen page for details
 | 
						|
%at http://research.cc.gatech.edu/borg/sites/edu.borg/html/index.html
 | 
						|
%
 | 
						|
%-------Constructors-------
 | 
						|
%ClassA()
 | 
						|
%
 | 
						|
%-------Methods-------
 | 
						|
%memberFunction() : returns double
 | 
						|
%nsArg(ClassB arg) : returns int
 | 
						|
%nsReturn(double q) : returns ns2::ns3::ClassB
 | 
						|
%
 | 
						|
%-------Static Methods-------
 | 
						|
%afunction() : returns double
 | 
						|
%
 | 
						|
classdef ClassA < handle
 | 
						|
  properties
 | 
						|
    ptr_ns2ClassA = 0
 | 
						|
  end
 | 
						|
  methods
 | 
						|
    function obj = ClassA(varargin)
 | 
						|
      if nargin == 2 && isa(varargin{1}, 'uint64') && varargin{1} == uint64(5139824614673773682)
 | 
						|
        my_ptr = varargin{2};
 | 
						|
        testNamespaces_wrapper(6, my_ptr);
 | 
						|
      elseif nargin == 0
 | 
						|
        my_ptr = testNamespaces_wrapper(7);
 | 
						|
      else
 | 
						|
        error('Arguments do not match any overload of ns2.ClassA constructor');
 | 
						|
      end
 | 
						|
      obj.ptr_ns2ClassA = my_ptr;
 | 
						|
    end
 | 
						|
 | 
						|
    function delete(obj)
 | 
						|
      testNamespaces_wrapper(8, obj.ptr_ns2ClassA);
 | 
						|
    end
 | 
						|
 | 
						|
    function display(obj), obj.print(''); end
 | 
						|
    %DISPLAY Calls print on the object
 | 
						|
    function disp(obj), obj.display; end
 | 
						|
    %DISP Calls print on the object
 | 
						|
    function varargout = memberFunction(this, varargin)
 | 
						|
      % MEMBERFUNCTION usage: memberFunction() : returns double
 | 
						|
      % Doxygen can be found at http://research.cc.gatech.edu/borg/sites/edu.borg/html/index.html
 | 
						|
      varargout{1} = testNamespaces_wrapper(9, this, varargin{:});
 | 
						|
    end
 | 
						|
 | 
						|
    function varargout = nsArg(this, varargin)
 | 
						|
      % NSARG usage: nsArg(ClassB arg) : returns int
 | 
						|
      % Doxygen can be found at http://research.cc.gatech.edu/borg/sites/edu.borg/html/index.html
 | 
						|
      if length(varargin) == 1 && isa(varargin{1},'ns1.ClassB')
 | 
						|
        varargout{1} = testNamespaces_wrapper(10, this, varargin{:});
 | 
						|
      else
 | 
						|
        error('Arguments do not match any overload of function ns2.ClassA.nsArg');
 | 
						|
      end
 | 
						|
    end
 | 
						|
 | 
						|
    function varargout = nsReturn(this, varargin)
 | 
						|
      % NSRETURN usage: nsReturn(double q) : returns ns2::ns3::ClassB
 | 
						|
      % Doxygen can be found at http://research.cc.gatech.edu/borg/sites/edu.borg/html/index.html
 | 
						|
      varargout{1} = testNamespaces_wrapper(11, this, varargin{:});
 | 
						|
    end
 | 
						|
 | 
						|
  end
 | 
						|
 | 
						|
  methods(Static = true)
 | 
						|
    function varargout = Afunction(varargin)
 | 
						|
      % AFUNCTION usage: afunction() : returns double
 | 
						|
      % Doxygen can be found at http://research.cc.gatech.edu/borg/sites/edu.borg/html/index.html
 | 
						|
      varargout{1} = testNamespaces_wrapper(12, varargin{:});
 | 
						|
    end
 | 
						|
 | 
						|
  end
 | 
						|
end
 |