ParallelContainerBasePrivate::propagateStateTo*All*Children

rename method to emphasize that state updates are propagated to all children
This commit is contained in:
Robert Haschke 2022-01-05 14:06:55 +01:00
parent 986d3c8766
commit 7a04a9f603
2 changed files with 4 additions and 4 deletions

View File

@ -233,7 +233,7 @@ protected:
/// callback for new externally received states
template <typename Interface::Direction>
void propagateStateToChildren(Interface::iterator external, bool updated);
void propagateStateToAllChildren(Interface::iterator external, bool updated);
private:
// override for custom behavior on received interface states

View File

@ -734,11 +734,11 @@ void ParallelContainerBasePrivate::initializeExternalInterfaces() {
// States received by the container need to be copied to all children's pull interfaces.
if (requiredInterface() & READS_START)
starts() = std::make_shared<Interface>([this](Interface::iterator external, bool updated) {
this->propagateStateToChildren<Interface::FORWARD>(external, updated);
this->propagateStateToAllChildren<Interface::FORWARD>(external, updated);
});
if (requiredInterface() & READS_END)
ends() = std::make_shared<Interface>([this](Interface::iterator external, bool updated) {
this->propagateStateToChildren<Interface::BACKWARD>(external, updated);
this->propagateStateToAllChildren<Interface::BACKWARD>(external, updated);
});
}
@ -774,7 +774,7 @@ void ParallelContainerBasePrivate::validateConnectivity() const {
}
template <Interface::Direction dir>
void ParallelContainerBasePrivate::propagateStateToChildren(Interface::iterator external, bool updated) {
void ParallelContainerBasePrivate::propagateStateToAllChildren(Interface::iterator external, bool updated) {
for (const Stage::pointer& stage : children())
copyState<dir>(external, stage->pimpl()->pullInterface(dir), updated);
}