CMS 3D CMS Logo

Public Types | Public Member Functions | Public Attributes | Static Public Attributes

VertexTracker Struct Reference

#include <VertexTracker.h>

List of all members.

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 (const Sym &sym)
 VertexTracker (address_type addr, const std::string &name)

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.

                 :
    name_(),
    library_(),
    addr_(),
    id_(),
    total_as_leaf_(),
    total_seen_(),
    in_path_(),
    //size_(),
    percent_leaf_(0.0),
    percent_path_(0.0)
  { } 
VertexTracker::VertexTracker ( unsigned int  id) [inline, explicit]

Definition at line 27 of file VertexTracker.h.

                                         :
    name_(),
    library_(),
    addr_(),
    id_(id),
    total_as_leaf_(),
    total_seen_(),
    in_path_(),
    //size_(),
    percent_leaf_(0.0),
    percent_path_(0.0)
  { }
VertexTracker::VertexTracker ( address_type  addr,
const std::string &  name 
) [inline]

Definition at line 40 of file VertexTracker.h.

                                                         :
    name_(name),
    library_(),
    addr_(addr),
    id_(),
    total_as_leaf_(),
    total_seen_(),
    in_path_(),
    //size_(),
    percent_leaf_(0.0),
    percent_path_(0.0)
  { }
VertexTracker::VertexTracker ( const Sym sym) [inline, explicit]

Definition at line 53 of file VertexTracker.h.

                                         :
    name_(sym.name_),
    library_(sym.library_),
    addr_(sym.addr_),
    id_(),
    total_as_leaf_(),
    total_seen_(),
    in_path_(),
    //size_(sym.size_),
    percent_leaf_(0.0),
    percent_path_(0.0)
  { }

Member Function Documentation

void VertexTracker::incLeaf ( ) const [inline]

Definition at line 75 of file VertexTracker.h.

References total_as_leaf_.

void VertexTracker::incPath ( int  by) const [inline]

Definition at line 83 of file VertexTracker.h.

References in_path_.

  { in_path_+=by; }
void VertexTracker::incTotal ( ) const [inline]

Definition at line 79 of file VertexTracker.h.

References total_seen_.

  { ++total_seen_; }
bool VertexTracker::operator< ( unsigned int  id) const [inline]

Definition at line 71 of file VertexTracker.h.

References id_.

  { return id_<id; }
bool VertexTracker::operator< ( const VertexTracker a) const [inline]

Definition at line 67 of file VertexTracker.h.

References addr_.

  { return addr_<a.addr_; }
void VertexTracker::setID ( ) const [inline]

Definition at line 87 of file VertexTracker.h.

References id_, and next_id_.

  { id_=next_id_++; }

Member Data Documentation

Definition at line 92 of file VertexTracker.h.

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

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<<().

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().

Definition at line 99 of file VertexTracker.h.

Referenced by operator<<().

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<<().