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

32 lines
912 B
Mathematica
Raw Normal View History

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