CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
VertexTracker.cc File Reference
#include "VertexTracker.h"
#include <ostream>

Go to the source code of this file.

Functions

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

Function Documentation

std::ostream& operator<< ( std::ostream &  ost,
const VertexTracker 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_.

9 {
10 // static int empty_count = 1;
11 // std::string name = vt.name_;
12 
13  // this is a bad place for this code
14 // if (name.empty())
15 // {
16 // std::ostringstream ostr;
17 // ostr << "EmptyName-" << empty_count;
18 // ++empty_count;
19 // name = ostr.str();
20 // }
21 
22  ost << vt.id_ << '\t'
23  << (void*)vt.addr_ << '\t'
24  << vt.total_as_leaf_ << '\t'
25  << vt.total_seen_ << '\t'
26  << vt.in_path_ << '\t'
27  << vt.percent_leaf_ << '\t'
28  << vt.percent_path_ << '\t'
29  << '"' << vt.library_ << "\"\t"
30  << '"' << vt.name_ << '"';
31 
32  return ost;
33 }
std::string library_
Definition: VertexTracker.h:92
std::string name_
Definition: VertexTracker.h:91
address_type addr_
Definition: VertexTracker.h:93
unsigned int total_as_leaf_
Definition: VertexTracker.h:95
unsigned int in_path_
Definition: VertexTracker.h:97
unsigned int total_seen_
Definition: VertexTracker.h:96
unsigned int id_
Definition: VertexTracker.h:94