size_t Path::listDir(PathList &l, bool recurse, unsigned short flags) const { EachFunc func; details::DirLister dl(l); Bind(&dl, &details::DirLister::dirItem, func); l.clear(); each(func, recurse, flags); return l.size(); }
/* static private */ void SharedPathsOp::clearEdges(PathList& edges) { for (PathList::const_iterator i=edges.begin(), e=edges.end(); i!=e; ++i) { delete *i; } edges.clear(); }