2012-08-28 02:10:51 +08:00
%-------Constructors-------
%ClassA()
%-------Methods-------
%memberFunction()
%nsArg(ClassB arg)
%nsReturn(double q)
%-------Static Methods-------
%afunction()
%
%For more detailed documentation on GTSAM go to our Doxygen page, which can be found at http://research.cc.gatech.edu/borg/sites/edu.borg/html/index.html
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
function disp ( obj) , obj . display ; end
2012-07-10 22:21:58 +08:00
function varargout = memberFunction ( this, varargin)
2012-08-28 02:10:51 +08:00
% memberFunction memberFunction() :
% 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-28 02:10:51 +08:00
% nsArg nsArg(ClassB arg) :
% 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-28 02:10:51 +08:00
% nsReturn nsReturn(double q) :
% 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-28 02:10:51 +08:00
% afunction afunction() :
% Doxygen can be found at http://research.cc.gatech.edu/borg/sites/edu.borg/html/index.html
%
% Method Overloads
% 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