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

    function p = getptrs(obj)
%GETPTRS Return all pointers held by the object
%
%  P = GETPTRS(OBJ) returns a (1-by-N) vector containing all of the
%  pointers that the object is holding.

%  Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc.


if isvalid(obj.Expression)
    p = [obj.Expression, obj.Weights, getptrs(obj.cgoptimconstraint)];
else
    p = getptrs(obj.cgoptimconstraint);
end