| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Public Member Functions | Private Attributes

# IgHookTrace::CounterValue Class Reference

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

`#include <IgHook_IgHookTrace.h>`

Collaboration diagram for IgHookTrace::CounterValue:
[legend]

List of all members.

## 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 34 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 | ( | 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::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::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 64 of file IgHook_IgHookTrace.h.

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

Definition at line 61 of file IgHook_IgHookTrace.h.

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

Definition at line 62 of file IgHook_IgHookTrace.h.

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

Definition at line 63 of file IgHook_IgHookTrace.h.

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines