| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
IgHookTrace::CounterValue Class Reference

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

`#include <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.

: m_counter (counter),
m_next (next),
m_value (value),
m_count (0)
{}

## Member Function Documentation

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

Definition at line 175 of file IgHook_IgHookTrace.cpp.

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

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

Definition at line 187 of file IgHook_IgHookTrace.cpp.

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

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

Definition at line 163 of file IgHook_IgHookTrace.cpp.

{ return m_count; }

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

Definition at line 151 of file IgHook_IgHookTrace.cpp.

{ return m_counter; }

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

Definition at line 183 of file IgHook_IgHookTrace.cpp.

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

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

Definition at line 195 of file IgHook_IgHookTrace.cpp.

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

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

Definition at line 155 of file IgHook_IgHookTrace.cpp.

{ return m_next; }

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

Definition at line 138 of file IgHook_IgHookTrace.cpp.

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

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

Definition at line 179 of file IgHook_IgHookTrace.cpp.

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

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

Definition at line 191 of file IgHook_IgHookTrace.cpp.

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

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

Definition at line 167 of file IgHook_IgHookTrace.cpp.

{ ++m_count; return ++m_value; }

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

Definition at line 171 of file IgHook_IgHookTrace.cpp.

{ --m_count; return --m_value; }

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

Definition at line 159 of file IgHook_IgHookTrace.cpp.

{ return m_value; }

## 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:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiProfiling/src/component/IgHook_IgHookTrace.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiProfiling/src/component/IgHook_IgHookTrace.cpp