Home > vbmeg > functions > common > utility > stack > tools > vb_m_stack_new.m

vb_m_stack_new

PURPOSE ^

create stack object by memory

SYNOPSIS ^

function [obj] = vb_m_stack_new(obj)

DESCRIPTION ^

 create stack object by memory
 [USAGE]
    [obj] = vb_m_stack_new(<obj>);
 [IN]
    obj : stack object.
 [OUT]
    obj : m_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 [obj] = vb_m_stack_new(obj)
0002 % create stack object by memory
0003 % [USAGE]
0004 %    [obj] = vb_m_stack_new(<obj>);
0005 % [IN]
0006 %    obj : stack object.
0007 % [OUT]
0008 %    obj : m_stack object.
0009 %
0010 % Copyright (C) 2011, ATR All Rights Reserved.
0011 % License : New BSD License(see VBMEG_LICENSE.txt)
0012 
0013 %
0014 % --- Previous check
0015 %
0016 if ~exist('obj', 'var'), error('obj is a required parameter.'); end
0017 
0018 %
0019 % --- Main Procedure
0020 %
0021 obj.class_type = 'm_stack';
0022 obj.queue = [];
0023 
0024 %
0025 % --- After check
0026 %
0027 if nargout ~= 1
0028     error('function caller should reveive obj.');
0029 end
0030

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