@@ -189,7 +189,8 @@ void ContainerBasePrivate::onNewFailure(const Stage& child, const InterfaceState
189189}
190190
191191template <Interface::Direction dir>
192- void ContainerBasePrivate::copyState (Interface::iterator external, const InterfacePtr& target, bool updated) {
192+ void ContainerBasePrivate::copyState (Interface::iterator external, const InterfacePtr& target,
193+ Interface::UpdateFlags updated) {
193194 if (updated) { // propagate external state update to internal copies
194195 auto internals{ externalToInternalMap ().equal_range (&*external) };
195196 for (auto & i = internals.first ; i != internals.second ; ++i) {
@@ -550,7 +551,7 @@ void SerialContainerPrivate::resolveInterface(InterfaceFlags expected) {
550551 validateInterface<START_IF_MASK>(*first.pimpl (), expected);
551552 // connect first child's (start) pull interface
552553 if (const InterfacePtr& target = first.pimpl ()->starts ())
553- starts_.reset (new Interface ([this , target](Interface::iterator it, bool updated) {
554+ starts_.reset (new Interface ([this , target](Interface::iterator it, Interface::UpdateFlags updated) {
554555 this ->copyState <Interface::FORWARD>(it, target, updated);
555556 }));
556557 } catch (InitStageException& e) {
@@ -575,7 +576,7 @@ void SerialContainerPrivate::resolveInterface(InterfaceFlags expected) {
575576 validateInterface<END_IF_MASK>(*last.pimpl (), expected);
576577 // connect last child's (end) pull interface
577578 if (const InterfacePtr& target = last.pimpl ()->ends ())
578- ends_.reset (new Interface ([this , target](Interface::iterator it, bool updated) {
579+ ends_.reset (new Interface ([this , target](Interface::iterator it, Interface::UpdateFlags updated) {
579580 this ->copyState <Interface::BACKWARD>(it, target, updated);
580581 }));
581582 } catch (InitStageException& e) {
@@ -670,11 +671,11 @@ void ParallelContainerBasePrivate::resolveInterface(InterfaceFlags expected) {
670671
671672 // States received by the container need to be copied to all children's pull interfaces.
672673 if (expected & READS_START)
673- starts ().reset (new Interface ([this ](Interface::iterator external, bool updated) {
674+ starts ().reset (new Interface ([this ](Interface::iterator external, Interface::UpdateFlags updated) {
674675 this ->onNewExternalState <Interface::FORWARD>(external, updated);
675676 }));
676677 if (expected & READS_END)
677- ends ().reset (new Interface ([this ](Interface::iterator external, bool updated) {
678+ ends ().reset (new Interface ([this ](Interface::iterator external, Interface::UpdateFlags updated) {
678679 this ->onNewExternalState <Interface::BACKWARD>(external, updated);
679680 }));
680681
@@ -713,7 +714,7 @@ void ParallelContainerBasePrivate::validateConnectivity() const {
713714}
714715
715716template <Interface::Direction dir>
716- void ParallelContainerBasePrivate::onNewExternalState (Interface::iterator external, bool updated) {
717+ void ParallelContainerBasePrivate::onNewExternalState (Interface::iterator external, Interface::UpdateFlags updated) {
717718 for (const Stage::pointer& stage : children ())
718719 copyState<dir>(external, stage->pimpl ()->pullInterface <dir>(), updated);
719720}
0 commit comments