12 #ifndef SST_CORE_MODULE_H
13 #define SST_CORE_MODULE_H
15 #include "sst/core/eli/elementinfo.h"
24 SST_ELI_DECLARE_BASE(
Module)
38 static constexpr
int fake_deprecated_function()
39 __attribute__((deprecated(
"SST_ELI_REGISTER_MODULE is deprecated and will be removed in SST 13. Please use the "
40 "new SST_ELI_REGISTER_MODULE_API and SST_ELI_REGISTER_MODULE_DERIVED macros")))
46 #define SST_ELI_REGISTER_MODULE(cls, lib, name, version, desc, interface) \
47 static const int SST_ELI_FAKE_VALUE = sst_eli_fake_deprecated_class::fake_deprecated_function(); \
48 SST_ELI_REGISTER_DERIVED(SST::Module,cls,lib,name,ELI_FORWARD_AS_ONE(version),desc) \
49 SST_ELI_INTERFACE_INFO(interface)
53 #define SST_ELI_REGISTER_MODULE_API(cls, ...) \
54 SST_ELI_DECLARE_NEW_BASE(SST::Module,::cls) \
55 SST_ELI_NEW_BASE_CTOR(SST::Params&,##__VA_ARGS__)
57 #define SST_ELI_REGISTER_MODULE_DERIVED_API(cls, base, ...) \
58 SST_ELI_DECLARE_NEW_BASE(::base,::cls) \
59 SST_ELI_NEW_BASE_CTOR(SST::Params&,##__VA_ARGS__)
61 #define SST_ELI_REGISTER_MODULE_DERIVED(cls, lib, name, version, desc, interface) \
62 SST_ELI_REGISTER_DERIVED(::interface,cls,lib,name,ELI_FORWARD_AS_ONE(version),desc) \
63 SST_ELI_INTERFACE_INFO(#interface)
65 #endif // SST_CORE_MODULE_H
Main component object for the simulation.
Definition: component.h:30
Module is a tag class used with the loadModule function.
Definition: module.h:21
Definition: paramsInfo.h:40
Parameter store.
Definition: params.h:55