Alsvinn  0.5.3
The fast FVM simulator with UQ support
Macros
stats_util.hpp File Reference
#include "alsuq/stats/StatisticsFactory.hpp"
#include <boost/preprocessor.hpp>

Go to the source code of this file.

Macros

#define REGISTER_STATISTICS(platform, name, classname)
 

Macro Definition Documentation

◆ REGISTER_STATISTICS

#define REGISTER_STATISTICS (   platform,
  name,
  classname 
)
Value:
namespace { \
static struct BOOST_PP_CAT(RegisterStruct, BOOST_PP_CAT(platform, name)) { \
BOOST_PP_CAT(RegisterStruct, BOOST_PP_CAT(platform, name))() { \
std::shared_ptr<alsuq::stats::Statistics> statistics; \
statistics.reset(new classname(params)); \
return statistics; \
});\
} \
} BOOST_PP_CAT(BOOST_PP_CAT(registerObject, platform),name); \
}
std::string name
Definition: EquationParameterFactory.cpp:39
Definition: StatisticsParameters.hpp:24
static void registerStatistics(const std::string &platform, const std::string &name, StatisticsCreator maker)
Definition: StatisticsFactory.cpp:41