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 {}
56 void addData_impl_Ntimes(uint64_t UNUSED(N), T UNUSED(data))
override {}
59 template <
class... Args>
63 const std::string& statSubId,
Params& statParams)
64 :
Statistic<std::tuple<Args...>>(comp, statName, statSubId, statParams)
67 this->setStatisticTypeName(
"NULL");
70 void addData_impl(Args... UNUSED(data))
override {}
72 void addData_impl_Ntimes(uint64_t UNUSED(N), Args... UNUSED(data))
override {}
79 const std::string& statSubId,
Params& statParams)
83 this->setStatisticTypeName(
"NULL");
86 void addData_impl(T&& UNUSED(data))
override {}
87 void addData_impl(
const T& UNUSED(data))
override {}
89 void addData_impl(uint64_t UNUSED(N), T&& UNUSED(data))
override {}
90 void addData_impl(uint64_t UNUSED(N),
const T& UNUSED(data))
override {}
96 SST_ELI_DECLARE_STATISTIC_TEMPLATE(
100 SST_ELI_ELEMENT_VERSION(1,0,0),
101 "Null object it ignore all collections",
105 const std::string& statSubId,
Params& statParam)
111 void clearStatisticData()
override
121 void outputStatisticFields(
StatisticFieldsOutput* UNUSED(statOutput),
bool UNUSED(EndOfSimFlag))
override
126 bool isReady()
const override
131 bool isNullStatistic()
const override
136 static bool isLoaded() {
148 SST_ELI_REGISTER_DERIVED(
153 SST_ELI_ELEMENT_VERSION(1,0,0),
154 "Null statistic for custom (void) stats"
157 SST_ELI_INTERFACE_INFO(
"Statistic<void>")
160 const std::string& statSubId,
Params& statParams)
164 this->setStatisticTypeName(
"NULL");
Definition: statnull.h:146
Definition: statnull.h:41
Forms the template defined base class for statistics gathering within SST.
Definition: elementinfo.h:42
void Statistic has special meaning in that it does not collect fields in the usual way through the ad...
Definition: statbase.h:428
An empty statistic place holder.
Definition: statnull.h:94
Definition: statoutput.h:144
Main component object for the simulation.
Definition: baseComponent.h:53
Parameter store.
Definition: params.h:44