12 #ifndef SST_CORE_SUBCOMPONENT_H
13 #define SST_CORE_SUBCOMPONENT_H
15 #include "sst/core/baseComponent.h"
16 #include "sst/core/eli/elementinfo.h"
17 #include "sst/core/module.h"
18 #include "sst/core/warnmacros.h"
34 SST_ELI_DECLARE_CTOR_EXTERN(ComponentId_t)
35 SST_ELI_DECLARE_INFO_EXTERN(
48 virtual void init(
unsigned int UNUSED(phase))
override {}
51 virtual void setup()
override {}
65 #define SST_ELI_REGISTER_SUBCOMPONENT_API(cls, ...) \
66 SST_ELI_DECLARE_NEW_BASE(SST::SubComponent,::cls) \
67 SST_ELI_NEW_BASE_CTOR(SST::ComponentId_t,SST::Params&,##__VA_ARGS__)
69 #define SST_ELI_REGISTER_SUBCOMPONENT_DERIVED_API(cls, base, ...) \
70 SST_ELI_DECLARE_NEW_BASE(::base,::cls) \
71 SST_ELI_NEW_BASE_CTOR(SST::ComponentId_t,SST::Params&,##__VA_ARGS__)
73 #define SST_ELI_REGISTER_SUBCOMPONENT_DERIVED(cls, lib, name, version, desc, interface) \
74 SST_ELI_REGISTER_DERIVED(::interface,cls,lib,name,ELI_FORWARD_AS_ONE(version),desc) \
75 SST_ELI_INTERFACE_INFO(#interface)
77 #endif // SST_CORE_SUBCOMPONENT_H
virtual void finish() override
Called after simulation completes, but before objects are destroyed.
Definition: subcomponent.h:54
Definition: portsInfo.h:39
Main component object for the simulation.
Definition: component.h:30
Definition: statsInfo.h:39
Module is a tag class used with the loadModule function.
Definition: module.h:21
Definition: paramsInfo.h:40
virtual void setup() override
Called after all components have been constructed and initialization has completed, but before simulation time has begun.
Definition: subcomponent.h:51
Main component object for the simulation.
Definition: baseComponent.h:49
Definition: subcompSlotInfo.h:39
virtual void init(unsigned int UNUSED(phase)) override
Used during the init phase.
Definition: subcomponent.h:48
SubComponent is a class loadable through the factory which allows dynamic functionality to be added t...
Definition: subcomponent.h:28
Definition: interfaceInfo.h:18