view m-toolbox/classes/@ltpda_nuo/copy.m @ 18:947e2ff4b1b9
database-connection-manager
Update plist.FROM_REPOSITORY_PLIST and plist.TO_REPOSITORY_PLIST
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Mon, 05 Dec 2011 16:20:06 +0100 (2011-12-05)
parents
f0afece42f48
children
line source
+ − % COPY copies all fields of the ltpda_nuo class to the new object.
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − %
+ − % DESCRIPTION: COPY copies all fields of the ltpda_nuo class to the new
+ − % object.
+ − %
+ − % CALL: b = copy(new, old, flag)
+ − %
+ − % INPUTS: new - new object which should be created in the sub class.
+ − % old - old object
+ − % flag - 1: make a deep copy, 0: return copies of handles
+ − %
+ − % OUTPUTS: b - copy of inputs
+ − %
+ − % VERSION: $Id: copy.m,v 1.1 2009/08/14 10:53:05 ingo Exp $
+ − %
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ −
+ − function varargout = copy(new, old, deepcopy)
+ −
+ − if deepcopy
+ − obj = copy@ltpda_obj(new, old, 1);
+ − else
+ − obj = old;
+ − end
+ −
+ − varargout{1} = obj;
+ − end