Go to the source code of this file.
Classes | |
struct | VertexTracker |
Functions | |
std::ostream & | operator<< (std::ostream &os, VertexTracker const &vt) |
std::ostream& operator<< | ( | std::ostream & | os, |
VertexTracker const & | vt | ||
) |
Definition at line 8 of file VertexTracker.cc.
References VertexTracker::addr_, VertexTracker::id_, VertexTracker::in_path_, VertexTracker::library_, VertexTracker::name_, VertexTracker::percent_leaf_, VertexTracker::percent_path_, VertexTracker::total_as_leaf_, and VertexTracker::total_seen_.
{ // static int empty_count = 1; // std::string name = vt.name_; // this is a bad place for this code // if (name.empty()) // { // std::ostringstream ostr; // ostr << "EmptyName-" << empty_count; // ++empty_count; // name = ostr.str(); // } ost << vt.id_ << '\t' << (void*)vt.addr_ << '\t' << vt.total_as_leaf_ << '\t' << vt.total_seen_ << '\t' << vt.in_path_ << '\t' << vt.percent_leaf_ << '\t' << vt.percent_path_ << '\t' << '"' << vt.library_ << "\"\t" << '"' << vt.name_ << '"'; return ost; }