Kryptostack
counter.h
Go to the documentation of this file.
1
5#pragma once
6
9template <typename T>
10class Counter {
11 static inline int counter_total_ = 0;
12 static inline int counter_alive_ = 0;
14protected:
16
17public:
22 }
23
25 static int getTotalCounter() { return counter_total_; }
26
28 static int getAliveCounter() { return counter_alive_; }
29};
Counter base class.
Definition: counter.h:10
Counter()
Ctor.
Definition: counter.h:19
static int getAliveCounter()
Static getter for objects alive.
Definition: counter.h:28
static int counter_total_
Objects created for performance analysis.
Definition: counter.h:11
static int getTotalCounter()
Static getter for created objects.
Definition: counter.h:25
static int counter_alive_
Objects alive.Target is to have 0 at programm exit.
Definition: counter.h:12