opencv/modules/matlab/generator/templates/template_class_base.m

32 lines
919 B
Mathematica
Raw Normal View History

2013-03-18 08:35:43 +08:00
% {{class.name | upper}}
% Matlab handle class for OpenCV object classes
2013-03-18 10:37:42 +08:00
%
% This file was autogenerated, do not modify.
% See LICENCE for full modification and redistribution details.
% Copyright {{time.strftime("%Y", time.localtime())}} The OpenCV Foundation
2013-03-18 08:35:43 +08:00
classdef {{class.name}} < handle
properties (SetAccess = private, Hidden = true)
ptr_ = 0; % handle to the underlying c++ class instance
end
methods
% constructor
function this = {{class.name}}(varargin)
this.ptr_ = {{class.name}}Bridge('new', varargin{:});
end
% destructor
function delete(this)
{{className}}Bridge(this.ptr_, 'delete');
end
{% for function in class.functions %}
% {{function.__str__()}}
function varargout = {{function.name}}(this, varargin)
[varargout{1:nargout}] = {{class.name}}Bridge('{{function.name}}', this.ptr_, varargin{:});
end
{% endfor %}
end
end