SSP21-CPP
Statistics.h
1 
2 #ifndef SSP21_STATISTICS_H
3 #define SSP21_STATISTICS_H
4 
5 #include <cstdint>
6 
7 namespace ssp21
8 {
9  class Statistic
10  {
11  uint64_t value = 0;
12 
13  public:
14 
15  inline void increment()
16  {
17  ++value;
18  }
19 
20  operator const uint64_t& () const
21  {
22  return value;
23  }
24  };
25 
27  {
28  Statistic num_init;
29  Statistic num_user_data_without_session;
30  Statistic num_auth_fail;
31  Statistic num_ttl_expiration;
32  Statistic num_nonce_fail;
33  Statistic num_success;
34  };
35 
36 
37 }
38 
39 #endif
40 
SSP21-cpp main namespace.
Definition: BufferTypes.h:12