CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
edm::StatsCount Class Reference

#include <ELmap.h>

Public Member Functions

void add (const ELstring &context, bool reactedTo)
 
 StatsCount ()
 

Public Attributes

int aggregateN
 
ELstring context1
 
ELstring context2
 
ELstring contextLast
 
bool ignoredFlag
 
int n
 

Detailed Description

Definition at line 68 of file ELmap.h.

Constructor & Destructor Documentation

◆ StatsCount()

edm::StatsCount::StatsCount ( )

Definition at line 117 of file ELmap.cc.

117 : n(0), aggregateN(0), ignoredFlag(false), context1(""), context2(""), contextLast("") {}

Member Function Documentation

◆ add()

void edm::StatsCount::add ( const ELstring context,
bool  reactedTo 
)

Definition at line 119 of file ELmap.cc.

119  {
120  ++n;
121  ++aggregateN;
122 
123  ((1 == n) ? context1 : (2 == n) ? context2 : contextLast) = ELstring(context, 0, 16);
124 
125  if (!reactedTo)
126  ignoredFlag = true;
127 
128  } // add()

References aggregateN, context1, context2, contextLast, ignoredFlag, and n.

Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().

Member Data Documentation

◆ aggregateN

int edm::StatsCount::aggregateN

Definition at line 71 of file ELmap.h.

Referenced by add().

◆ context1

ELstring edm::StatsCount::context1

Definition at line 73 of file ELmap.h.

Referenced by add().

◆ context2

ELstring edm::StatsCount::context2

Definition at line 74 of file ELmap.h.

Referenced by add().

◆ contextLast

ELstring edm::StatsCount::contextLast

Definition at line 75 of file ELmap.h.

Referenced by add().

◆ ignoredFlag

bool edm::StatsCount::ignoredFlag

Definition at line 72 of file ELmap.h.

Referenced by add().

◆ n

int edm::StatsCount::n

Definition at line 70 of file ELmap.h.

Referenced by add().

edm::StatsCount::context2
ELstring context2
Definition: ELmap.h:74
edm::StatsCount::context1
ELstring context1
Definition: ELmap.h:73
edm::StatsCount::n
int n
Definition: ELmap.h:70
edm::ELstring
std::string ELstring
Definition: ELstring.h:21
edm::StatsCount::aggregateN
int aggregateN
Definition: ELmap.h:71
edm::StatsCount::contextLast
ELstring contextLast
Definition: ELmap.h:75
edm::StatsCount::ignoredFlag
bool ignoredFlag
Definition: ELmap.h:72