SST  13.0.0
StructuralSimulationToolkit
statgroup.h
1 // Copyright 2009-2023 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-2023, 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 SST_CORE_STATAPI_STATGROUP_H
13 #define SST_CORE_STATAPI_STATGROUP_H
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 class StatisticProcessingEngine;
27 
29 {
30 public:
31  StatisticGroup() : isDefault(true), name("default") {};
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 // SST_CORE_STATAPI_STATGROUP_H
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:63
Definition: action.cc:18
Definition: configGraph.h:158
An SST core component that handles timing and event processing informing all registered Statistics to...
Definition: statengine.h:51
Definition: statgroup.h:28
Performs Unit math in full precision.
Definition: unitAlgebra.h:106