Home > vbmeg > functions > common > utility > stack > vb_stack_delete.m

vb_stack_delete

PURPOSE ^

destroy stack object

SYNOPSIS ^

function vb_stack_delete(obj)

DESCRIPTION ^

 destroy stack object
 [USAGE]
    vb_stack_delete(<obj>);
 [IN]
    obj : stack object

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function vb_stack_delete(obj)
0002 % destroy stack object
0003 % [USAGE]
0004 %    vb_stack_delete(<obj>);
0005 % [IN]
0006 %    obj : stack object
0007 %
0008 % Copyright (C) 2011, ATR All Rights Reserved.
0009 % License : New BSD License(see VBMEG_LICENSE.txt)
0010 
0011 %
0012 % --- Previous check
0013 %
0014 if ~exist('obj', 'var'), error('obj is a required parameter.'); end
0015 
0016 %
0017 % --- Main Procedure
0018 %
0019 switch(obj.class_type)
0020     case 'm_stack'
0021         vb_m_stack_delete(obj);
0022     case 'f_stack'
0023         vb_f_stack_delete(obj);
0024     otherwise
0025         error('Specified obj is invalid.');
0026 end

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005