SST  11.0.0
StructuralSimulationToolkit
statgroup.h
1 // Copyright 2009-2021 NTESS. Under the terms
2 // of Contract DE-NA0003525 with NTESS, the U.S.
3 // Government retains certain rights in this software.
4 //
5 // Copyright (c) 2009-2021, NTESS
6 // All rights reserved.
7 //
8 // This file is part of the SST software package. For license
9 // information, see the LICENSE file in the top level directory of the
10 // distribution.
11 
12 #ifndef _H_SST_CORE_STATISTICS_GROUP
13 #define _H_SST_CORE_STATISTICS_GROUP
14 
15 #include "sst/core/sst_types.h"
16 #include "sst/core/unitAlgebra.h"
17 
18 #include <string>
19 #include <vector>
20 
21 namespace SST {
22 class ConfigStatGroup;
23 namespace Statistics {
24 class StatisticBase;
25 class StatisticOutput;
26 
27 
28 
30 public:
31  StatisticGroup() : isDefault(true), name("default") { };
32  StatisticGroup(const ConfigStatGroup &csg);
33 
34  bool containsStatistic(const StatisticBase *stat) const;
35  bool claimsStatistic(const StatisticBase *stat) const;
36  void addStatistic(StatisticBase *stat);
37 
38  bool isDefault;
39  std::string name;
40  StatisticOutput *output;
41  UnitAlgebra outputFreq;
42 
43  std::vector<ComponentId_t> components;
44  std::vector<std::string> statNames;
45  std::vector<StatisticBase*> stats;
46 };
47 
48 } //namespace Statistics
49 } //namespace SST
50 
51 #endif
Forms the base class for statistics output generation within the SST core.
Definition: statoutput.h:49
Forms the base class for statistics gathering within SST.
Definition: statbase.h:64
Definition: configGraph.h:155
Definition: statgroup.h:29
Performs Unit math in full precision.
Definition: unitAlgebra.h:107