Skip to content

Commit 7a04a9f

Browse files
committed
ParallelContainerBasePrivate::propagateStateTo*All*Children
rename method to emphasize that state updates are propagated to all children
1 parent 986d3c8 commit 7a04a9f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/include/moveit/task_constructor/container_p.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ class ParallelContainerBasePrivate : public ContainerBasePrivate
233233

234234
/// callback for new externally received states
235235
template <typename Interface::Direction>
236-
void propagateStateToChildren(Interface::iterator external, bool updated);
236+
void propagateStateToAllChildren(Interface::iterator external, bool updated);
237237

238238
private:
239239
// override for custom behavior on received interface states

core/src/container.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -734,11 +734,11 @@ void ParallelContainerBasePrivate::initializeExternalInterfaces() {
734734
// States received by the container need to be copied to all children's pull interfaces.
735735
if (requiredInterface() & READS_START)
736736
starts() = std::make_shared<Interface>([this](Interface::iterator external, bool updated) {
737-
this->propagateStateToChildren<Interface::FORWARD>(external, updated);
737+
this->propagateStateToAllChildren<Interface::FORWARD>(external, updated);
738738
});
739739
if (requiredInterface() & READS_END)
740740
ends() = std::make_shared<Interface>([this](Interface::iterator external, bool updated) {
741-
this->propagateStateToChildren<Interface::BACKWARD>(external, updated);
741+
this->propagateStateToAllChildren<Interface::BACKWARD>(external, updated);
742742
});
743743
}
744744

@@ -774,7 +774,7 @@ void ParallelContainerBasePrivate::validateConnectivity() const {
774774
}
775775

776776
template <Interface::Direction dir>
777-
void ParallelContainerBasePrivate::propagateStateToChildren(Interface::iterator external, bool updated) {
777+
void ParallelContainerBasePrivate::propagateStateToAllChildren(Interface::iterator external, bool updated) {
778778
for (const Stage::pointer& stage : children())
779779
copyState<dir>(external, stage->pimpl()->pullInterface(dir), updated);
780780
}

0 commit comments

Comments
 (0)