CMS 3D CMS Logo

IgHookTrace::CounterValue Class Reference

Value for a counter chained from a trace. More...

#include <IgTools/IgHook/interface/IgHookTrace.h>

List of all members.

Public Member Functions

unsigned long long add (CounterValue &x)
unsigned long long add (unsigned long long value)
unsigned long long count (void)
Countercounter (void)
 CounterValue (Counter *counter, CounterValue *next=0, unsigned long long value=0)
unsigned long long max (CounterValue &x)
unsigned long long max (unsigned long long value)
CounterValuenext (void)
voidoperator new (size_t n, IgHookTraceAlloc *alloc=0)
unsigned long long sub (CounterValue &x)
unsigned long long sub (unsigned long long value)
unsigned long long tick (void)
unsigned long long untick (void)
unsigned long long value (void)

Private Attributes

unsigned long long m_count
Counterm_counter
CounterValuem_next
unsigned long long m_value


Detailed Description

Value for a counter chained from a trace.

Definition at line 34 of file IgHookTrace.h.


Constructor & Destructor Documentation

IgHookTrace::CounterValue::CounterValue ( Counter counter,
CounterValue next = 0,
unsigned long long  value = 0 
)

Definition at line 117 of file IgHookTrace.cc.

00120     : m_counter (counter),
00121       m_next (next),
00122       m_value (value),
00123       m_count (0)
00124 {}


Member Function Documentation

unsigned long long IgHookTrace::CounterValue::add ( CounterValue x  ) 

Definition at line 163 of file IgHookTrace.cc.

References m_count, and m_value.

00164 { m_count += x.m_count; m_value += x.m_value; return m_value; }

unsigned long long IgHookTrace::CounterValue::add ( unsigned long long  value  ) 

Definition at line 151 of file IgHookTrace.cc.

References m_count, and m_value.

00152 { ++m_count; return m_value += value; }

unsigned long long IgHookTrace::CounterValue::count ( void   ) 

Definition at line 139 of file IgHookTrace.cc.

References m_count.

00140 { return m_count; }

IgHookTrace::Counter * IgHookTrace::CounterValue::counter ( void   ) 

Definition at line 127 of file IgHookTrace.cc.

References m_counter.

00128 { return m_counter; }

unsigned long long IgHookTrace::CounterValue::max ( CounterValue x  ) 

Definition at line 171 of file IgHookTrace.cc.

References m_count, and m_value.

00172 { m_count += x.m_count; if (m_value < x.m_value) m_value = x.m_value; return m_value; }

unsigned long long IgHookTrace::CounterValue::max ( unsigned long long  value  ) 

Definition at line 159 of file IgHookTrace.cc.

References m_count, and m_value.

00160 { ++m_count; if (m_value < value) m_value = value; return m_value; }

IgHookTrace::CounterValue * IgHookTrace::CounterValue::next ( void   ) 

Definition at line 131 of file IgHookTrace.cc.

References m_next.

Referenced by IgHookTrace::counter(), and IgHookTrace::merge().

00132 { return m_next; }

void * IgHookTrace::CounterValue::operator new ( size_t  n,
IgHookTraceAlloc alloc = 0 
)

Definition at line 114 of file IgHookTrace.cc.

References IgHookTraceAlloc::allocate().

00115 { return alloc ? alloc->allocate (n) : ::operator new (n); }

unsigned long long IgHookTrace::CounterValue::sub ( CounterValue x  ) 

Definition at line 167 of file IgHookTrace.cc.

References m_count, and m_value.

00168 { m_count -= x.m_count; m_value -= x.m_value; return m_value; }

unsigned long long IgHookTrace::CounterValue::sub ( unsigned long long  value  ) 

Definition at line 155 of file IgHookTrace.cc.

References m_count, and m_value.

00156 { --m_count; return m_value -= value; }

unsigned long long IgHookTrace::CounterValue::tick ( void   ) 

Definition at line 143 of file IgHookTrace.cc.

References m_count, and m_value.

00144 { ++m_count; return ++m_value; }

unsigned long long IgHookTrace::CounterValue::untick ( void   ) 

Definition at line 147 of file IgHookTrace.cc.

References m_count, and m_value.

00148 { --m_count; return --m_value; }

unsigned long long IgHookTrace::CounterValue::value ( void   ) 

Definition at line 135 of file IgHookTrace.cc.

References m_value.

00136 { return m_value; }


Member Data Documentation

unsigned long long IgHookTrace::CounterValue::m_count [private]

Definition at line 64 of file IgHookTrace.h.

Referenced by add(), count(), max(), sub(), tick(), and untick().

Counter* IgHookTrace::CounterValue::m_counter [private]

Definition at line 61 of file IgHookTrace.h.

Referenced by counter().

CounterValue* IgHookTrace::CounterValue::m_next [private]

Definition at line 62 of file IgHookTrace.h.

Referenced by next().

unsigned long long IgHookTrace::CounterValue::m_value [private]

Definition at line 63 of file IgHookTrace.h.

Referenced by add(), max(), sub(), tick(), untick(), and value().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:25:12 2009 for CMSSW by  doxygen 1.5.4