www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcmodel/@data/pSetObject.m

    function val = pSetObject(obj, val)
%PSETOBJECT Private function.
%
%  VAL = PSETOBJECT(OBJ, VAL)

%   Copyright 2004-2005 The MathWorks, Inc.
%       $Date: 

% If this data is being edited then obj.Object really contains something so
% we don't need to worry about val as it passes through directly
if ~obj.IsBeingEdited
    % Is the pointer valid - If it isn't then we are storeing the value
    % locally
    if ~isempty( obj.Pointer ) && obj.isNotNull
        pointer = obj.pGetPointerInstance;
        pointer.info = val;
        % Hold nothing internally
        val = [];
    end
end