CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Static Public Attributes
PathTracker Struct Reference

Public Member Functions

void incTotal () const
 
bool operator< (const PathTracker &a) const
 
 PathTracker ()
 
void setID () const
 

Public Attributes

unsigned int id_
 
unsigned int total_
 
ULVec tree_
 

Static Public Attributes

static std::atomic< unsigned int > next_id_
 

Detailed Description

Definition at line 30 of file ProfParse.cc.

Constructor & Destructor Documentation

PathTracker::PathTracker ( )
inline

Definition at line 32 of file ProfParse.cc.

32 : id_(),total_() { }
unsigned int total_
Definition: ProfParse.cc:35
unsigned int id_
Definition: ProfParse.cc:34

Member Function Documentation

void PathTracker::incTotal ( ) const
inline

Definition at line 40 of file ProfParse.cc.

References total_.

40 { ++total_; }
unsigned int total_
Definition: ProfParse.cc:35
bool PathTracker::operator< ( const PathTracker a) const

Definition at line 47 of file ProfParse.cc.

References tree_.

48 {
49  return tree_ < a.tree_;
50 }
ULVec tree_
Definition: ProfParse.cc:36
void PathTracker::setID ( ) const
inline

Definition at line 39 of file ProfParse.cc.

References id_, and next_id_.

39 { id_=next_id_++; }
static std::atomic< unsigned int > next_id_
Definition: ProfParse.cc:42
unsigned int id_
Definition: ProfParse.cc:34

Member Data Documentation

unsigned int PathTracker::id_
mutable

Definition at line 34 of file ProfParse.cc.

Referenced by operator<<(), and setID().

std::atomic< unsigned int > PathTracker::next_id_
static

Definition at line 42 of file ProfParse.cc.

Referenced by setID().

unsigned int PathTracker::total_
mutable

Definition at line 35 of file ProfParse.cc.

Referenced by incTotal(), and operator<<().

ULVec PathTracker::tree_

Definition at line 36 of file ProfParse.cc.

Referenced by operator<(), operator<<(), and writeProfileData().