function cList = getChildren(obj)
%GETCHILDREN Return all child objects of an Object
%   CHILDLIST = RPTGEN_UD.GETCHILDREN(OBJ)

%   Copyright 1997-2010 The MathWorks, Inc.

cList = [];
obj = down(obj);
while ~isempty(obj)
    cList = [cList obj]; %#ok
    obj = right(obj);
end
