SST  13.1.0
Structural Simulation Toolkit
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
Definition: configGraph.h:159
Forms the base class for statistics gathering within SST.
Definition: statbase.h:64
Definition: statgroup.h:29
Forms the base class for statistics output generation within the SST core.
Definition: statoutput.h:50
An SST core component that handles timing and event processing informing all registered Statistics to...
Definition: statengine.h:52
Performs Unit math in full precision.
Definition: unitAlgebra.h:109