CMS 3D CMS Logo

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

#include <VertexTracker.h>

Public Types

typedef void * address_type
 

Public Member Functions

void incLeaf () const
 
void incPath (int by) const
 
void incTotal () const
 
bool operator< (const VertexTracker &a) const
 
bool operator< (unsigned int id) const
 
void setID () const
 
 VertexTracker ()
 
 VertexTracker (unsigned int id)
 
 VertexTracker (address_type addr, const std::string &name)
 
 VertexTracker (const Sym &sym)
 

Public Attributes

address_type addr_
 
EdgeMap edges_
 
unsigned int id_
 
unsigned int in_path_
 
std::string library_
 
std::string name_
 
float percent_leaf_
 
float percent_path_
 
unsigned int total_as_leaf_
 
unsigned int total_seen_
 

Static Public Attributes

static std::atomic< unsigned int > next_id_ {0}
 

Detailed Description

Definition at line 12 of file VertexTracker.h.

Member Typedef Documentation

Definition at line 14 of file VertexTracker.h.

Constructor & Destructor Documentation

VertexTracker::VertexTracker ( )
inline

Definition at line 15 of file VertexTracker.h.

15  :
16  name_(),
17  library_(),
18  addr_(),
19  id_(),
21  total_seen_(),
22  in_path_(),
23  //size_(),
24  percent_leaf_(0.0),
25  percent_path_(0.0)
26  { }
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
VertexTracker::VertexTracker ( unsigned int  id)
inlineexplicit

Definition at line 28 of file VertexTracker.h.

28  :
29  name_(),
30  library_(),
31  addr_(),
32  id_(id),
34  total_seen_(),
35  in_path_(),
36  //size_(),
37  percent_leaf_(0.0),
38  percent_path_(0.0)
39  { }
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
VertexTracker::VertexTracker ( address_type  addr,
const std::string &  name 
)
inline

Definition at line 41 of file VertexTracker.h.

41  :
42  name_(name),
43  library_(),
44  addr_(addr),
45  id_(),
47  total_seen_(),
48  in_path_(),
49  //size_(),
50  percent_leaf_(0.0),
51  percent_path_(0.0)
52  { }
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
VertexTracker::VertexTracker ( const Sym sym)
inlineexplicit

Definition at line 54 of file VertexTracker.h.

54  :
55  name_(sym.name_),
56  library_(sym.library_),
57  addr_(sym.addr_),
58  id_(),
60  total_seen_(),
61  in_path_(),
62  //size_(sym.size_),
63  percent_leaf_(0.0),
64  percent_path_(0.0)
65  { }
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
std::string library_
Definition: Sym.h:35
std::string name_
Definition: Sym.h:34
address_type addr_
Definition: Sym.h:37
unsigned int total_seen_
Definition: VertexTracker.h:96
unsigned int id_
Definition: VertexTracker.h:94

Member Function Documentation

void VertexTracker::incLeaf ( ) const
inline

Definition at line 76 of file VertexTracker.h.

References total_as_leaf_.

77  { ++total_as_leaf_; }
unsigned int total_as_leaf_
Definition: VertexTracker.h:95
void VertexTracker::incPath ( int  by) const
inline

Definition at line 84 of file VertexTracker.h.

References in_path_.

85  { in_path_+=by; }
unsigned int in_path_
Definition: VertexTracker.h:97
void VertexTracker::incTotal ( ) const
inline

Definition at line 80 of file VertexTracker.h.

References total_seen_.

81  { ++total_seen_; }
unsigned int total_seen_
Definition: VertexTracker.h:96
bool VertexTracker::operator< ( const VertexTracker a) const
inline

Definition at line 68 of file VertexTracker.h.

References addr_.

69  { return addr_<a.addr_; }
address_type addr_
Definition: VertexTracker.h:93
bool VertexTracker::operator< ( unsigned int  id) const
inline

Definition at line 72 of file VertexTracker.h.

References id_.

73  { return id_<id; }
unsigned int id_
Definition: VertexTracker.h:94
void VertexTracker::setID ( ) const
inline

Definition at line 88 of file VertexTracker.h.

References id_, and next_id_.

89  { id_=next_id_++; }
static std::atomic< unsigned int > next_id_
unsigned int id_
Definition: VertexTracker.h:94

Member Data Documentation

address_type VertexTracker::addr_

Definition at line 93 of file VertexTracker.h.

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

EdgeMap VertexTracker::edges_
mutable

Definition at line 98 of file VertexTracker.h.

unsigned int VertexTracker::id_
mutable

Definition at line 94 of file VertexTracker.h.

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

unsigned int VertexTracker::in_path_
mutable

Definition at line 97 of file VertexTracker.h.

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

std::string VertexTracker::library_

Definition at line 92 of file VertexTracker.h.

Referenced by operator<<().

std::string VertexTracker::name_

Definition at line 91 of file VertexTracker.h.

Referenced by operator<<().

std::atomic< unsigned int > VertexTracker::next_id_ {0}
static

Definition at line 103 of file VertexTracker.h.

Referenced by setID().

float VertexTracker::percent_leaf_
mutable

Definition at line 100 of file VertexTracker.h.

Referenced by operator<<().

float VertexTracker::percent_path_
mutable

Definition at line 101 of file VertexTracker.h.

Referenced by operator<<().

unsigned int VertexTracker::total_as_leaf_
mutable

Definition at line 95 of file VertexTracker.h.

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

unsigned int VertexTracker::total_seen_
mutable

Definition at line 96 of file VertexTracker.h.

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