@@ -422,23 +422,23 @@ void SerialContainerPrivate::validateInterface(const StagePrivate& child, Interf
422422}
423423
424424// called by parent asking for pruning of this' interface
425- void SerialContainerPrivate::pruneInterface (InterfaceFlags accepted ) {
425+ void SerialContainerPrivate::resolveInterface (InterfaceFlags expected ) {
426426 // we need to have some children to do the actual work
427427 if (children ().empty ())
428428 throw InitStageException (*me (), " no children" );
429429
430- if (!(accepted & START_IF_MASK))
430+ if (!(expected & START_IF_MASK))
431431 throw InitStageException (*me (), " unknown start interface" );
432432
433433 Stage& first = *children ().front ();
434434 Stage& last = *children ().back ();
435435
436436 // FIRST child
437- first.pimpl ()->pruneInterface (accepted & START_IF_MASK);
437+ first.pimpl ()->resolveInterface (expected & START_IF_MASK);
438438 // connect first child's (start) push interface
439439 setChildsPushBackwardInterface (first.pimpl ());
440440 // validate that first child's and this container's start interfaces match
441- validateInterface<START_IF_MASK>(*first.pimpl (), accepted );
441+ validateInterface<START_IF_MASK>(*first.pimpl (), expected );
442442 // connect first child's (start) pull interface
443443 if (const InterfacePtr& target = first.pimpl ()->starts ())
444444 starts_.reset (new Interface (
@@ -448,14 +448,14 @@ void SerialContainerPrivate::pruneInterface(InterfaceFlags accepted) {
448448 for (auto it = ++children ().begin (), previous_it = children ().begin (); it != children ().end (); ++it, ++previous_it) {
449449 StagePrivate* child_impl = (**it).pimpl ();
450450 StagePrivate* previous_impl = (**previous_it).pimpl ();
451- child_impl->pruneInterface (invert (previous_impl->requiredInterface ()) & START_IF_MASK);
451+ child_impl->resolveInterface (invert (previous_impl->requiredInterface ()) & START_IF_MASK);
452452 connect (*previous_impl, *child_impl);
453453 }
454454
455455 // connect last child's (end) push interface
456456 setChildsPushForwardInterface (last.pimpl ());
457457 // validate that last child's and this container's end interfaces match
458- validateInterface<END_IF_MASK>(*last.pimpl (), accepted );
458+ validateInterface<END_IF_MASK>(*last.pimpl (), expected );
459459 // connect last child's (end) pull interface
460460 if (const InterfacePtr& target = last.pimpl ()->ends ())
461461 ends_.reset (new Interface (
@@ -552,7 +552,7 @@ void WrappedSolution::fillMessage(moveit_task_constructor_msgs::Solution& soluti
552552ParallelContainerBasePrivate::ParallelContainerBasePrivate (ParallelContainerBase* me, const std::string& name)
553553 : ContainerBasePrivate(me, name) {}
554554
555- void ParallelContainerBasePrivate::pruneInterface (InterfaceFlags accepted ) {
555+ void ParallelContainerBasePrivate::resolveInterface (InterfaceFlags expected ) {
556556 // we need to have some children to do the actual work
557557 if (children ().empty ())
558558 throw InitStageException (*me (), " no children" );
@@ -563,8 +563,8 @@ void ParallelContainerBasePrivate::pruneInterface(InterfaceFlags accepted) {
563563 for (const Stage::pointer& child : children ()) {
564564 try {
565565 auto child_impl = child->pimpl ();
566- child_impl->pruneInterface (accepted );
567- validateInterfaces (*child_impl, accepted , first);
566+ child_impl->resolveInterface (expected );
567+ validateInterfaces (*child_impl, expected , first);
568568 // initialize push connections of children according to their demands
569569 setChildsPushForwardInterface (child_impl);
570570 setChildsPushBackwardInterface (child_impl);
@@ -579,16 +579,16 @@ void ParallelContainerBasePrivate::pruneInterface(InterfaceFlags accepted) {
579579 throw exceptions;
580580
581581 // States received by the container need to be copied to all children's pull interfaces.
582- if (accepted & READS_START)
582+ if (expected & READS_START)
583583 starts ().reset (new Interface ([this ](Interface::iterator external, bool updated) {
584584 this ->onNewExternalState (Interface::FORWARD, external, updated);
585585 }));
586- if (accepted & READS_END)
586+ if (expected & READS_END)
587587 ends ().reset (new Interface ([this ](Interface::iterator external, bool updated) {
588588 this ->onNewExternalState (Interface::BACKWARD, external, updated);
589589 }));
590590
591- required_interface_ = accepted ;
591+ required_interface_ = expected ;
592592}
593593
594594void ParallelContainerBasePrivate::validateInterfaces (const StagePrivate& child, InterfaceFlags& external,
@@ -746,8 +746,8 @@ void Fallbacks::onNewSolution(const SolutionBase& s) {
746746
747747MergerPrivate::MergerPrivate (Merger* me, const std::string& name) : ParallelContainerBasePrivate(me, name) {}
748748
749- void MergerPrivate::pruneInterface (InterfaceFlags accepted ) {
750- ContainerBasePrivate::pruneInterface (accepted );
749+ void MergerPrivate::resolveInterface (InterfaceFlags expected ) {
750+ ContainerBasePrivate::resolveInterface (expected );
751751 switch (interfaceFlags ()) {
752752 case PROPAGATE_FORWARDS:
753753 case PROPAGATE_BACKWARDS:
0 commit comments