DiSMEC++
stat_id.h
Go to the documentation of this file.
1
// Copyright (c) 2021, Aalto University, developed by Erik Schultheis
2
// All rights reserved.
3
//
4
// SPDX-License-Identifier: MIT
5
6
#ifndef DISMEC_STATS_STAT_ID_H
7
#define DISMEC_STATS_STAT_ID_H
8
9
#include <cstdint>
10
#include <string>
11
#include "
utils/opaque_int.h
"
12
13
namespace
dismec::stats
{
14
namespace
detail {
16
struct
stat_id_tag;
18
struct
tag_id_tag;
19
}
20
24
using
stat_id_t
=
opaque_int_type<detail::stat_id_tag>
;
28
using
tag_id_t
=
opaque_int_type<detail::tag_id_tag>
;
29
33
struct
StatisticMetaData
{
34
std::string
Name
;
35
std::string
Unit
= {};
36
};
37
}
38
39
#endif
//DISMEC_STATS_STAT_ID_H
dismec::opaque_int_type< detail::stat_id_tag >
dismec::stats
Definition:
collection.h:17
opaque_int.h
dismec::stats::StatisticMetaData
Data that is associated with each declared statistics.
Definition:
stat_id.h:33
dismec::stats::StatisticMetaData::Unit
std::string Unit
The unit in which the data points will be supplied. What you would put on the x-axis when plotting a ...
Definition:
stat_id.h:35
dismec::stats::StatisticMetaData::Name
std::string Name
The name of the stat. This is how it will be identified.
Definition:
stat_id.h:34
src
stats
stat_id.h
Generated by
1.9.1