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 unsigned int next_id_ = 0
 

Detailed Description

Definition at line 11 of file VertexTracker.h.

Member Typedef Documentation

Definition at line 13 of file VertexTracker.h.

Constructor & Destructor Documentation

VertexTracker::VertexTracker ( )
inline

Definition at line 14 of file VertexTracker.h.

14  :
15  name_(),
16  library_(),
17  addr_(),
18  id_(),
20  total_seen_(),
21  in_path_(),
22  //size_(),
23  percent_leaf_(0.0),
24  percent_path_(0.0)
25  { }
std::string library_
Definition: VertexTracker.h:91
std::string name_
Definition: VertexTracker.h:90
address_type addr_
Definition: VertexTracker.h:92
unsigned int total_as_leaf_
Definition: VertexTracker.h:94
float percent_leaf_
Definition: VertexTracker.h:99
unsigned int in_path_
Definition: VertexTracker.h:96
unsigned int total_seen_
Definition: VertexTracker.h:95
unsigned int id_
Definition: VertexTracker.h:93
VertexTracker::VertexTracker ( unsigned int  id)
inlineexplicit

Definition at line 27 of file VertexTracker.h.

27  :
28  name_(),
29  library_(),
30  addr_(),
31  id_(id),
33  total_seen_(),
34  in_path_(),
35  //size_(),
36  percent_leaf_(0.0),
37  percent_path_(0.0)
38  { }
std::string library_
Definition: VertexTracker.h:91
std::string name_
Definition: VertexTracker.h:90
address_type addr_
Definition: VertexTracker.h:92
unsigned int total_as_leaf_
Definition: VertexTracker.h:94
float percent_leaf_
Definition: VertexTracker.h:99
unsigned int in_path_
Definition: VertexTracker.h:96
unsigned int total_seen_
Definition: VertexTracker.h:95
unsigned int id_
Definition: VertexTracker.h:93
VertexTracker::VertexTracker ( address_type  addr,
const std::string &  name 
)
inline

Definition at line 40 of file VertexTracker.h.

40  :
41  name_(name),
42  library_(),
43  addr_(addr),
44  id_(),
46  total_seen_(),
47  in_path_(),
48  //size_(),
49  percent_leaf_(0.0),
50  percent_path_(0.0)
51  { }
std::string library_
Definition: VertexTracker.h:91
std::string name_
Definition: VertexTracker.h:90
address_type addr_
Definition: VertexTracker.h:92
unsigned int total_as_leaf_
Definition: VertexTracker.h:94
float percent_leaf_
Definition: VertexTracker.h:99
unsigned int in_path_
Definition: VertexTracker.h:96
unsigned int total_seen_
Definition: VertexTracker.h:95
unsigned int id_
Definition: VertexTracker.h:93
VertexTracker::VertexTracker ( const Sym sym)
inlineexplicit

Definition at line 53 of file VertexTracker.h.

53  :
54  name_(sym.name_),
55  library_(sym.library_),
56  addr_(sym.addr_),
57  id_(),
59  total_seen_(),
60  in_path_(),
61  //size_(sym.size_),
62  percent_leaf_(0.0),
63  percent_path_(0.0)
64  { }
std::string library_
Definition: VertexTracker.h:91
std::string name_
Definition: VertexTracker.h:90
address_type addr_
Definition: VertexTracker.h:92
unsigned int total_as_leaf_
Definition: VertexTracker.h:94
float percent_leaf_
Definition: VertexTracker.h:99
unsigned int in_path_
Definition: VertexTracker.h:96
std::string library_
Definition: Sym.h:34
std::string name_
Definition: Sym.h:33
address_type addr_
Definition: Sym.h:36
unsigned int total_seen_
Definition: VertexTracker.h:95
unsigned int id_
Definition: VertexTracker.h:93

Member Function Documentation

void VertexTracker::incLeaf ( ) const
inline

Definition at line 75 of file VertexTracker.h.

References total_as_leaf_.

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

Definition at line 83 of file VertexTracker.h.

References in_path_.

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

Definition at line 79 of file VertexTracker.h.

References total_seen_.

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

Definition at line 67 of file VertexTracker.h.

References addr_.

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

Definition at line 71 of file VertexTracker.h.

References errorMatrix2Lands_multiChannel::id, and id_.

void VertexTracker::setID ( ) const
inline

Definition at line 87 of file VertexTracker.h.

References id_, and next_id_.

88  { id_=next_id_++; }
unsigned int id_
Definition: VertexTracker.h:93
static unsigned int next_id_

Member Data Documentation

address_type VertexTracker::addr_

Definition at line 92 of file VertexTracker.h.

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

EdgeMap VertexTracker::edges_
mutable

Definition at line 97 of file VertexTracker.h.

unsigned int VertexTracker::id_
mutable

Definition at line 93 of file VertexTracker.h.

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

unsigned int VertexTracker::in_path_
mutable

Definition at line 96 of file VertexTracker.h.

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

std::string VertexTracker::library_

Definition at line 91 of file VertexTracker.h.

Referenced by operator<<().

std::string VertexTracker::name_

Definition at line 90 of file VertexTracker.h.

Referenced by operator<<().

unsigned int VertexTracker::next_id_ = 0
static

Definition at line 102 of file VertexTracker.h.

Referenced by setID().

float VertexTracker::percent_leaf_
mutable

Definition at line 99 of file VertexTracker.h.

Referenced by operator<<().

float VertexTracker::percent_path_
mutable

Definition at line 100 of file VertexTracker.h.

Referenced by operator<<().

unsigned int VertexTracker::total_as_leaf_
mutable

Definition at line 94 of file VertexTracker.h.

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

unsigned int VertexTracker::total_seen_
mutable

Definition at line 95 of file VertexTracker.h.

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