www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mctree/mapptr.m

    function T = mapptr(T,RefMap)
%MAPPTR Map pointers for this treenode
% 
%  T = MAPPTR(T,REFMAP) changes the addresses of contained pointers
%  according to the mapping in REFMAP.

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


T.mbcreference = mapptr(T.mbcreference, RefMap);
T.Parent= mapptr(T.Parent,RefMap);
T.Children= mapptr(T.Children,RefMap);