#include "alsfvm/functional/FunctionalFactory.hpp"
#include <boost/preprocessor.hpp>
Go to the source code of this file.
◆ REGISTER_FUNCTIONAL
#define REGISTER_FUNCTIONAL |
( |
|
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<alsfvm::functional::Functional>
functional; \
functional.reset(new classname(params)); \
});\
} \
} BOOST_PP_CAT(BOOST_PP_CAT(registerObject, platform),
name); \
}
Holds general parameters based on a boost::property tree.
Definition: Parameters.hpp:24
static void registerFunctional(const std::string &platform, const std::string &name, FunctionalFactory::FunctionalCreator maker)
Definition: FunctionalFactory.cpp:38
std::string name
Definition: EquationParameterFactory.cpp:39
functional
Definition: FunctionalStatistics.cpp:76