www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgdatasetnode/getduplicationptrs.m
function pDup = getduplicationptrs(nd) %GETDUPLICATIONPTRS Return the pointers required for duplicating a node % % P_DUP = GETDUPLICATIONPTRS(T) returns a (1xn) xregpointer vector % containing the pointers that need to be duplicated when the tree node % is copied. % Copyright 2000-2008 The MathWorks, Inc. and Ford Global Technologies, Inc. % cgdatasetnode returns just the dataset pointer plus the basic node % pointers plus some internal dataset pointers pOpPt = getdata(nd); OpPtPtrs = get(pOpPt.info, 'ptrlist'); if isempty(OpPtPtrs) OpPtPtrs_internal = false(0, 0); else OpPtPtrs_internal = isUniqueToDataset(pOpPt.info) & ~isnull(OpPtPtrs); end pDup = [address(nd), getdata(nd), OpPtPtrs(OpPtPtrs_internal)];