diff m-toolbox/classes/@ltpda_uoh/clearHistory.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m-toolbox/classes/@ltpda_uoh/clearHistory.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,22 @@
+% CLEARHISTORY Clears the history of an object with history.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% DESCRIPTION: CLEARHISTORY Clears the history of an object with history.
+%              This is a hidden method and use this method carefully. 
+%
+% CALL:        objs = clearHistory(objs)
+%              objs = objs.clearHistory()
+%
+% VERSION:     $Id: clearHistory.m,v 1.3 2011/04/08 08:56:30 hewitson Exp $
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+function varargout = clearHistory(varargin)
+  
+  for kk=1:nargin
+    if isa(varargin{kk}, 'ltpda_uoh')
+      varargin{kk}.hist = [];
+    end
+  end
+  
+  varargout = varargin;
+end