www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptim/getInternalPtrs.m

    function pList = getInternalPtrs(obj)
%GETINTERNALPTRS List of internal pointers 
%
%  PLIST = GETINTERNALPTRS(OBJ) returns a row vector of internal pointers
%  to the object.  An internal pointer is one which should be freed when
%  the current object is freed, but which is guaranteed not to be shared
%  with another object.

%  Copyright 2004-2005 The MathWorks, Inc. 


pList = mbcpointer(1, 0);
for n = 1:length(obj.Objectives)
    pList = [pList getInternalPtrs(obj.Objectives{n})];
end
for n = 1:length(obj.Constraints)
    pList = [pList getInternalPtrs(obj.Constraints{n})];
end