@@ -24,8 +24,8 @@ ReactorElement::ReactorElement(const std::string& name, ReactorElement::Type typ
2424 reactor_assert (container != nullptr );
2525 this ->environment_ = container->environment (); // NOLINT container can be NULL
2626 reactor_assert (this ->environment_ != nullptr );
27- validate (this ->environment_ ->phase () == Environment:: Phase::Construction ||
28- (type == Type::Action && this ->environment_ ->phase () == Environment:: Phase::Assembly),
27+ validate (this ->environment_ ->phase () == Phase::Construction ||
28+ (type == Type::Action && this ->environment_ ->phase () == Phase::Assembly),
2929 " Reactor elements can only be created during construction phase!" );
3030 // We need a reinterpret_cast here as the derived class is not yet created
3131 // when this constructor is executed. dynamic_cast only works for
@@ -65,7 +65,7 @@ ReactorElement::ReactorElement(const std::string& name, ReactorElement::Type typ
6565 , environment_(environment) {
6666 reactor_assert (environment != nullptr );
6767 validate (type == Type::Reactor || type == Type::Action, " Only reactors and actions can be owned by the environment!" );
68- validate (this ->environment_ ->phase () == Environment:: Phase::Construction,
68+ validate (this ->environment_ ->phase () == Phase::Construction,
6969 " Reactor elements can only be created during construction phase!" );
7070
7171 switch (type) {
@@ -89,8 +89,8 @@ Reactor::Reactor(const std::string& name, Environment* environment)
8989
9090void Reactor::register_action ([[maybe_unused]] BaseAction* action) {
9191 reactor_assert (action != nullptr );
92- reactor::validate (this ->environment ()->phase () == Environment:: Phase::Construction ||
93- this ->environment ()->phase () == Environment:: Phase::Assembly,
92+ reactor::validate (this ->environment ()->phase () == Phase::Construction ||
93+ this ->environment ()->phase () == Phase::Assembly,
9494 " Actions can only be registered during construction phase!" );
9595 [[maybe_unused]] bool result = actions_.insert (action).second ;
9696 reactor_assert (result);
@@ -99,7 +99,7 @@ void Reactor::register_action([[maybe_unused]] BaseAction* action) {
9999
100100void Reactor::register_input (BasePort* port) {
101101 reactor_assert (port != nullptr );
102- reactor::validate (this ->environment ()->phase () == Environment:: Phase::Construction,
102+ reactor::validate (this ->environment ()->phase () == Phase::Construction,
103103 " Ports can only be registered during construction phase!" );
104104 [[maybe_unused]] bool result = inputs_.insert (port).second ;
105105 reactor_assert (result);
@@ -108,7 +108,7 @@ void Reactor::register_input(BasePort* port) {
108108
109109void Reactor::register_output (BasePort* port) {
110110 reactor_assert (port != nullptr );
111- reactor::validate (this ->environment ()->phase () == Environment:: Phase::Construction,
111+ reactor::validate (this ->environment ()->phase () == Phase::Construction,
112112 " Ports can only be registered during construction phase!" );
113113 [[maybe_unused]] bool result = inputs_.insert (port).second ;
114114 reactor_assert (result);
@@ -118,7 +118,7 @@ void Reactor::register_output(BasePort* port) {
118118void Reactor::register_reaction ([[maybe_unused]] Reaction* reaction) {
119119 reactor_assert (reaction != nullptr );
120120
121- validate (this ->environment ()->phase () == Environment:: Phase::Construction,
121+ validate (this ->environment ()->phase () == Phase::Construction,
122122 " Reactions can only be registered during construction phase!" );
123123 [[maybe_unused]] bool result = reactions_.insert (reaction).second ;
124124 reactor_assert (result);
@@ -127,15 +127,15 @@ void Reactor::register_reaction([[maybe_unused]] Reaction* reaction) {
127127
128128void Reactor::register_reactor ([[maybe_unused]] Reactor* reactor) {
129129 reactor_assert (reactor != nullptr );
130- validate (this ->environment ()->phase () == Environment:: Phase::Construction,
130+ validate (this ->environment ()->phase () == Phase::Construction,
131131 " Reactions can only be registered during construction phase!" );
132132 [[maybe_unused]] bool result = reactors_.insert (reactor).second ;
133133 reactor_assert (result);
134134 Statistics::increment_reactor_instances ();
135135}
136136
137137void Reactor::startup () {
138- reactor_assert (environment ()->phase () == Environment:: Phase::Startup);
138+ reactor_assert (environment ()->phase () == Phase::Startup);
139139 log::Debug () << " Starting up reactor " << fqn ();
140140 // call startup on all contained objects
141141 for (auto * base_action : actions_) {
@@ -156,7 +156,7 @@ void Reactor::startup() {
156156}
157157
158158void Reactor::shutdown () {
159- reactor_assert (environment ()->phase () == Environment:: Phase::Shutdown);
159+ reactor_assert (environment ()->phase () == Phase::Shutdown);
160160 log::Debug () << " Terminating reactor " << fqn ();
161161 // call shutdown on all contained objects
162162 for (auto * action : actions_) {
0 commit comments