void elem::buildList(List<elem>& tlist, const TraceTimer& timer) { tlist.append(elem(&timer, timer.time())); const std::vector<TraceTimer*>& children = timer.children(); for (int i=0; i<children.size(); i++) { buildList(tlist, *(children[i])); } }
void elem::buildList(std::list<elem>& tlist, const TraceTimer& timer) { tlist.push_back(elem(&timer, timer.time())); const std::vector<TraceTimer*>& children = timer.children(); for (unsigned int i=0; i<children.size(); i++) { buildList(tlist, *(children[i])); } }