90 lines
2.8 KiB
Matlab
90 lines
2.8 KiB
Matlab
%class ClassA, see Doxygen page for details
|
|
%at https://gtsam.org/doxygen/
|
|
%
|
|
%-------Constructors-------
|
|
%ClassA()
|
|
%
|
|
%-------Methods-------
|
|
%memberFunction() : returns double
|
|
%nsArg(ClassB arg) : returns int
|
|
%nsReturn(double q) : returns ns2::ns3::ClassB
|
|
%
|
|
%-------Static Methods-------
|
|
%afunction() : returns double
|
|
%
|
|
%-------Serialization Interface-------
|
|
%string_serialize() : returns string
|
|
%string_deserialize(string serialized) : returns ClassA
|
|
%
|
|
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};
|
|
namespaces_wrapper(7, my_ptr);
|
|
elseif nargin == 0
|
|
my_ptr = namespaces_wrapper(8);
|
|
else
|
|
error('Arguments do not match any overload of ns2.ClassA constructor');
|
|
end
|
|
obj.ptr_ns2ClassA = my_ptr;
|
|
end
|
|
|
|
function delete(obj)
|
|
namespaces_wrapper(9, 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 https://gtsam.org/doxygen/
|
|
if length(varargin) == 0
|
|
varargout{1} = namespaces_wrapper(10, this, varargin{:});
|
|
return
|
|
end
|
|
error('Arguments do not match any overload of function ns2.ClassA.memberFunction');
|
|
end
|
|
|
|
function varargout = nsArg(this, varargin)
|
|
% NSARG usage: nsArg(ClassB arg) : returns int
|
|
% Doxygen can be found at https://gtsam.org/doxygen/
|
|
if length(varargin) == 1 && isa(varargin{1},'ns1.ClassB')
|
|
varargout{1} = namespaces_wrapper(11, this, varargin{:});
|
|
return
|
|
end
|
|
error('Arguments do not match any overload of function ns2.ClassA.nsArg');
|
|
end
|
|
|
|
function varargout = nsReturn(this, varargin)
|
|
% NSRETURN usage: nsReturn(double q) : returns ns2.ns3.ClassB
|
|
% Doxygen can be found at https://gtsam.org/doxygen/
|
|
if length(varargin) == 1 && isa(varargin{1},'double')
|
|
varargout{1} = namespaces_wrapper(12, this, varargin{:});
|
|
return
|
|
end
|
|
error('Arguments do not match any overload of function ns2.ClassA.nsReturn');
|
|
end
|
|
|
|
end
|
|
|
|
methods(Static = true)
|
|
function varargout = afunction(varargin)
|
|
% AFUNCTION usage: afunction() : returns double
|
|
% Doxygen can be found at https://gtsam.org/doxygen/
|
|
if length(varargin) == 0
|
|
varargout{1} = namespaces_wrapper(13, varargin{:});
|
|
return
|
|
end
|
|
|
|
error('Arguments do not match any overload of function ClassA.afunction');
|
|
end
|
|
|
|
end
|
|
end
|