13 #ifndef SST_CORE_SUBCOMPONENT_H 14 #define SST_CORE_SUBCOMPONENT_H 16 #include <sst/core/warnmacros.h> 17 #include <sst/core/baseComponent.h> 18 #include <sst/core/component.h> 19 #include <sst/core/module.h> 33 my_info = parent->currentlyLoadingSubComponent;
39 virtual void init(
unsigned int UNUSED(phase))
override {}
42 virtual void setup( )
override { }
50 Component* getTrueComponent()
const final override {
return parent; }
64 virtual bool doesComponentInfoStatisticExist(
const std::string &statisticName)
const final override;
78 #endif // SST_CORE_SUBCOMPONENT_H ComponentId_t getId() const
Returns unique component ID.
Definition: baseComponent.h:114
SubComponent * loadSubComponent(std::string type, Component *comp, Params ¶ms)
Loads a SubComponent from an element Library.
Definition: baseComponent.cc:328
virtual void finish() override
Called after simulation completes, but before objects are destroyed.
Definition: subcomponent.h:45
Main component object for the simulation.
Definition: component.h:32
BaseComponent * getStatisticOwner() const final override
Returns self if Component If sub-component, returns self if a "modern" subcomponent otherwise...
Definition: subcomponent.h:51
Module is a tag class used with the loadModule function.
Definition: module.h:20
virtual void setup() override
Called after all components have been constructed and inialization has completed, but before simulati...
Definition: subcomponent.h:42
Main component object for the simulation.
Definition: baseComponent.h:104
Parameter store.
Definition: params.h:45
virtual void init(unsigned int UNUSED(phase)) override
Used during the init phase.
Definition: subcomponent.h:39
SubComponent is a class loadable through the factory which allows dynamic functionality to be added t...
Definition: subcomponent.h:29