![]() |
DD4hep
1.33.0
Detector Description Toolkit for High Energy Physics
|
Internal class to could object constructions and destructions. More...
#include <InstanceCount.h>
Public Member Functions | |
| Counter ()=default | |
| Default constructor. More... | |
| Counter (const Counter &c)=default | |
| Copy constructor. More... | |
| ~Counter ()=default | |
| Destructor. More... | |
| void | increment () |
| Increment counter. More... | |
| void | decrement () |
| Decrement counter. More... | |
| counter_t | value () const |
| Access counter value. More... | |
| counter_t | total () const |
| Access counter value. More... | |
| counter_t | maximum () const |
| Access maximum counter value. More... | |
Private Attributes | |
| counter_t | m_count = 0 |
| Reference counter value. More... | |
| counter_t | m_tot = 0 |
| Increment counter value. More... | |
| counter_t | m_max = 0 |
| Maximum number of simultaneous instances. More... | |
Internal class to could object constructions and destructions.
Small class to enable object construction/destruction tracing.
Definition at line 50 of file InstanceCount.h.
|
default |
Default constructor.
|
default |
Copy constructor.
|
default |
Destructor.
|
inline |
Decrement counter.
Definition at line 72 of file InstanceCount.h.
|
inline |
Increment counter.
Definition at line 66 of file InstanceCount.h.
|
inline |
Access maximum counter value.
Definition at line 84 of file InstanceCount.h.
|
inline |
Access counter value.
Definition at line 80 of file InstanceCount.h.
|
inline |
Access counter value.
Definition at line 76 of file InstanceCount.h.
|
private |
Reference counter value.
Definition at line 53 of file InstanceCount.h.
|
private |
Maximum number of simultaneous instances.
Definition at line 57 of file InstanceCount.h.
|
private |
Increment counter value.
Definition at line 55 of file InstanceCount.h.
1.8.18