SST  14.1.0
StructuralSimulationToolkit
statgroup.h
1 // Copyright 2009-2024 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-2024, 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/serialization/serializer.h"
16 #include "sst/core/sst_types.h"
17 #include "sst/core/unitAlgebra.h"
18 
19 #include <string>
20 #include <vector>
21 
22 namespace SST {
23 class ConfigStatGroup;
24 namespace Statistics {
25 class StatisticBase;
26 class StatisticOutput;
27 class StatisticProcessingEngine;
28 
30 {
31 public:
32  StatisticGroup() : isDefault(true), name("default") {};
34 
35  bool containsStatistic(const StatisticBase* stat) const;
36  bool claimsStatistic(const StatisticBase* stat) const;
37  void addStatistic(StatisticBase* stat);
38 
39  bool isDefault;
40  std::string name;
41  StatisticOutput* output;
42  UnitAlgebra outputFreq;
43  size_t outputId;
44 
45  std::vector<ComponentId_t> components;
46  std::vector<std::string> statNames;
47  std::vector<StatisticBase*> stats;
48 
49  void restartGroup(StatisticProcessingEngine* engine);
50  void serialize_order(SST::Core::Serialization::serializer& ser);
51 };
52 
53 } // namespace Statistics
54 } // namespace SST
55 
56 #endif // SST_CORE_STATAPI_STATGROUP_H
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:43
Forms the base class for statistics output generation within the SST core.
Definition: statoutput.h:50
Forms the base class for statistics gathering within SST.
Definition: statbase.h:45
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:52
Definition: statgroup.h:29
Performs Unit math in full precision.
Definition: unitAlgebra.h:106