CMS 3D CMS Logo

Classes | Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/FWCore/Services/src/VertexTracker.h File Reference

#include <iosfwd>
#include <string>
#include "Sym.h"
#include "ProfParseTypedefs.h"

Go to the source code of this file.

Classes

struct  VertexTracker

Functions

std::ostream & operator<< (std::ostream &os, VertexTracker const &vt)

Function Documentation

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;
}