| The Gaudi Framework v28r2-patches (bc4ad17a)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Private Attributes | List of all members
IgHookTrace::CounterValue Class Reference

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

`#include <src/component/IgHook_IgHookTrace.h>`

Collaboration diagram for IgHookTrace::CounterValue:
[legend]

## Public Member Functions
void * | operator new (size_t n, IgHookTraceAlloc *alloc=0)
| CounterValue (Counter *counter, CounterValue *next=0, unsigned long long value=0)
Counter * | counter (void)
CounterValue * | next (void)
unsigned long long | count (void)
unsigned long long | value (void)
unsigned long long | tick (void)
unsigned long long | untick (void)
unsigned long long | add (unsigned long long value)
unsigned long long | add (CounterValue &x)
unsigned long long | sub (unsigned long long value)
unsigned long long | sub (CounterValue &x)
unsigned long long | max (unsigned long long value)
unsigned long long | max (CounterValue &x)

## Private Attributes
Counter * | m_counter
CounterValue * | m_next
unsigned long long | m_value
unsigned long long | m_count

## Detailed Description

Value for a counter chained from a trace.

Definition at line 35 of file IgHook_IgHookTrace.h.

## Constructor & Destructor Documentation

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

Definition at line 141 of file IgHook_IgHookTrace.cpp.

144 : m_counter (counter),
145 m_next (next),
146 m_value (value),
147 m_count (0)
148 {}
IgHookTrace::CounterValue::next
CounterValue * next(void)
Definition: IgHook_IgHookTrace.cpp:155
IgHookTrace::CounterValue::m_next
CounterValue * m_next
Definition: IgHook_IgHookTrace.h:63
IgHookTrace::CounterValue::m_counter
Counter * m_counter
Definition: IgHook_IgHookTrace.h:62
IgHookTrace::CounterValue::counter
Counter * counter(void)
Definition: IgHook_IgHookTrace.cpp:151
IgHookTrace::CounterValue::value
unsigned long long value(void)
Definition: IgHook_IgHookTrace.cpp:159
IgHookTrace::CounterValue::m_value
unsigned long long m_value
Definition: IgHook_IgHookTrace.h:64
IgHookTrace::CounterValue::m_count
unsigned long long m_count
Definition: IgHook_IgHookTrace.h:65

## Member Function Documentation

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

Definition at line 175 of file IgHook_IgHookTrace.cpp.

176 { ++m_count; return m_value += value; }
IgHookTrace::CounterValue::value
unsigned long long value(void)
Definition: IgHook_IgHookTrace.cpp:159
IgHookTrace::CounterValue::m_value
unsigned long long m_value
Definition: IgHook_IgHookTrace.h:64
IgHookTrace::CounterValue::m_count
unsigned long long m_count
Definition: IgHook_IgHookTrace.h:65

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

Definition at line 187 of file IgHook_IgHookTrace.cpp.

188 { m_count += x.m_count; m_value += x.m_value; return m_value; }
IgHookTrace::CounterValue::m_value
unsigned long long m_value
Definition: IgHook_IgHookTrace.h:64
IgHookTrace::CounterValue::m_count
unsigned long long m_count
Definition: IgHook_IgHookTrace.h:65

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

Definition at line 163 of file IgHook_IgHookTrace.cpp.

164 { return m_count; }
IgHookTrace::CounterValue::m_count
unsigned long long m_count
Definition: IgHook_IgHookTrace.h:65

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

Definition at line 151 of file IgHook_IgHookTrace.cpp.

152 { return m_counter; }
IgHookTrace::CounterValue::m_counter
Counter * m_counter
Definition: IgHook_IgHookTrace.h:62

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

Definition at line 183 of file IgHook_IgHookTrace.cpp.

184 { ++m_count; if (m_value < value) m_value = value; return m_value; }
IgHookTrace::CounterValue::value
unsigned long long value(void)
Definition: IgHook_IgHookTrace.cpp:159
IgHookTrace::CounterValue::m_value
unsigned long long m_value
Definition: IgHook_IgHookTrace.h:64
IgHookTrace::CounterValue::m_count
unsigned long long m_count
Definition: IgHook_IgHookTrace.h:65

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

Definition at line 195 of file IgHook_IgHookTrace.cpp.

196 { m_count += x.m_count; if (m_value < x.m_value) m_value = x.m_value; return m_value; }
IgHookTrace::CounterValue::m_value
unsigned long long m_value
Definition: IgHook_IgHookTrace.h:64
IgHookTrace::CounterValue::m_count
unsigned long long m_count
Definition: IgHook_IgHookTrace.h:65

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

Definition at line 155 of file IgHook_IgHookTrace.cpp.

156 { return m_next; }
IgHookTrace::CounterValue::m_next
CounterValue * m_next
Definition: IgHook_IgHookTrace.h:63

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

Definition at line 138 of file IgHook_IgHookTrace.cpp.

139 { return alloc ? alloc->allocate (n) : ::operator new (n); }
GaudiPluginService.cpluginsvc.n
n
Definition: cpluginsvc.py:217
IgHookTraceAlloc::allocate
void * allocate(size_t bytes)
Definition: IgHook_IgHookTrace.cpp:105

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

Definition at line 179 of file IgHook_IgHookTrace.cpp.

180 { --m_count; return m_value -= value; }
IgHookTrace::CounterValue::value
unsigned long long value(void)
Definition: IgHook_IgHookTrace.cpp:159
IgHookTrace::CounterValue::m_value
unsigned long long m_value
Definition: IgHook_IgHookTrace.h:64
IgHookTrace::CounterValue::m_count
unsigned long long m_count
Definition: IgHook_IgHookTrace.h:65

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

Definition at line 191 of file IgHook_IgHookTrace.cpp.

192 { m_count -= x.m_count; m_value -= x.m_value; return m_value; }
IgHookTrace::CounterValue::m_value
unsigned long long m_value
Definition: IgHook_IgHookTrace.h:64
IgHookTrace::CounterValue::m_count
unsigned long long m_count
Definition: IgHook_IgHookTrace.h:65

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

Definition at line 167 of file IgHook_IgHookTrace.cpp.

168 { ++m_count; return ++m_value; }
IgHookTrace::CounterValue::m_value
unsigned long long m_value
Definition: IgHook_IgHookTrace.h:64
IgHookTrace::CounterValue::m_count
unsigned long long m_count
Definition: IgHook_IgHookTrace.h:65

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

Definition at line 171 of file IgHook_IgHookTrace.cpp.

172 { --m_count; return --m_value; }
IgHookTrace::CounterValue::m_value
unsigned long long m_value
Definition: IgHook_IgHookTrace.h:64
IgHookTrace::CounterValue::m_count
unsigned long long m_count
Definition: IgHook_IgHookTrace.h:65

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

Definition at line 159 of file IgHook_IgHookTrace.cpp.

160 { return m_value; }
IgHookTrace::CounterValue::m_value
unsigned long long m_value
Definition: IgHook_IgHookTrace.h:64

## Member Data Documentation

unsigned long long IgHookTrace::CounterValue::m_count
| private

Definition at line 65 of file IgHook_IgHookTrace.h.

Counter* IgHookTrace::CounterValue::m_counter
| private

Definition at line 62 of file IgHook_IgHookTrace.h.

CounterValue* IgHookTrace::CounterValue::m_next
| private

Definition at line 63 of file IgHook_IgHookTrace.h.

unsigned long long IgHookTrace::CounterValue::m_value
| private

Definition at line 64 of file IgHook_IgHookTrace.h.

The documentation for this class was generated from the following files:

- GaudiProfiling/src/component/IgHook_IgHookTrace.h
- GaudiProfiling/src/component/IgHook_IgHookTrace.cpp