13 #ifndef _H_SST_CORE_NULL_STATISTIC_
14 #define _H_SST_CORE_NULL_STATISTIC_
16 #include <sst/core/sst_types.h>
17 #include <sst/core/warnmacros.h>
19 #include <sst/core/statapi/statbase.h>
22 namespace Statistics {
40 template <class T, bool B = std::is_fundamental<T>::value>
47 const std::string& statSubId,
Params& statParams)
51 this->setStatisticTypeName(
"NULL");
54 void addData_impl(T UNUSED(data))
override {}
57 template <
class... Args>
61 const std::string& statSubId,
Params& statParams)
62 :
Statistic<std::tuple<Args...>>(comp, statName, statSubId, statParams)
65 this->setStatisticTypeName(
"NULL");
68 void addData_impl(Args... UNUSED(data))
override {}
75 const std::string& statSubId,
Params& statParams)
79 this->setStatisticTypeName(
"NULL");
82 void addData_impl(T&& UNUSED(data))
override {}
83 void addData_impl(
const T& UNUSED(data))
override {}
89 SST_ELI_DECLARE_STATISTIC_TEMPLATE(
93 SST_ELI_ELEMENT_VERSION(1,0,0),
94 "Null object it ignore all collections",
98 const std::string& statSubId,
Params& statParam)
104 void clearStatisticData()
override
109 void registerOutputFields(
StatisticOutput* UNUSED(statOutput))
override
114 void outputStatisticData(
StatisticOutput* UNUSED(statOutput),
bool UNUSED(EndOfSimFlag))
override
119 bool isReady()
const override
124 bool isNullStatistic()
const override
129 static bool isLoaded() {
Forms the base class for statistics output generation within the SST core.
Definition: statoutput.h:48
Definition: statnull.h:41
Forms the template defined base class for statistics gathering within SST.
Definition: elementinfo.h:43
An empty statistic place holder.
Definition: statnull.h:87
Main component object for the simulation.
Definition: baseComponent.h:52
Parameter store.
Definition: params.h:45