| The Gaudi Framework v30r0 (c919700c)

- 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 37 of file IgHook_IgHookTrace.h.

## Constructor & Destructor Documentation

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

Definition at line 135 of file IgHook_IgHookTrace.cpp.

137 : m_counter( counter ), m_next( next ), m_value( value ), m_count( 0 )
138 {
139 }
IgHookTrace::CounterValue::next
CounterValue * next(void)
Definition: IgHook_IgHookTrace.cpp:143
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:141
IgHookTrace::CounterValue::value
unsigned long long value(void)
Definition: IgHook_IgHookTrace.cpp:145
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 161 of file IgHook_IgHookTrace.cpp.

162 {
163 ++m_count;
164 return m_value += value;
165 }
IgHookTrace::CounterValue::value
unsigned long long value(void)
Definition: IgHook_IgHookTrace.cpp:145
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 180 of file IgHook_IgHookTrace.cpp.

181 {
182 m_count += x.m_count;
183 m_value += x.m_value;
184 return m_value;
185 }
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 147 of file IgHook_IgHookTrace.cpp.

147 { 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 141 of file IgHook_IgHookTrace.cpp.

141 { 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 173 of file IgHook_IgHookTrace.cpp.

174 {
175 ++m_count;
176 if ( m_value < value ) m_value = value;
177 return m_value;
178 }
IgHookTrace::CounterValue::value
unsigned long long value(void)
Definition: IgHook_IgHookTrace.cpp:145
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 194 of file IgHook_IgHookTrace.cpp.

195 {
196 m_count += x.m_count;
197 if ( m_value < x.m_value ) m_value = x.m_value;
198 return m_value;
199 }
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 143 of file IgHook_IgHookTrace.cpp.

143 { 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 130 of file IgHook_IgHookTrace.cpp.

131 {
132 return alloc ? alloc->allocate( n ) : ::operator new( n );
133 }
GaudiPluginService.cpluginsvc.n
n
Definition: cpluginsvc.py:228
IgHookTraceAlloc::allocate
void * allocate(size_t bytes)
Definition: IgHook_IgHookTrace.cpp:101

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

Definition at line 167 of file IgHook_IgHookTrace.cpp.

168 {
169 --m_count;
170 return m_value -= value;
171 }
IgHookTrace::CounterValue::value
unsigned long long value(void)
Definition: IgHook_IgHookTrace.cpp:145
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 187 of file IgHook_IgHookTrace.cpp.

188 {
189 m_count -= x.m_count;
190 m_value -= x.m_value;
191 return m_value;
192 }
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 149 of file IgHook_IgHookTrace.cpp.

150 {
151 ++m_count;
152 return ++m_value;
153 }
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 155 of file IgHook_IgHookTrace.cpp.

156 {
157 --m_count;
158 return --m_value;
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::value | ( | void |  | ) |

Definition at line 145 of file IgHook_IgHookTrace.cpp.

145 { 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