implement ParallelContainer's pruneInterface()

This commit is contained in:
Robert Haschke 2018-02-25 12:04:30 +01:00
parent 0dc4f5c53e
commit bcacda8507

View File

@ -731,7 +731,11 @@ InterfaceFlags ParallelContainerBasePrivate::requiredInterface() const
void ParallelContainerBasePrivate::pruneInterface(InterfaceFlags accepted) void ParallelContainerBasePrivate::pruneInterface(InterfaceFlags accepted)
{ {
// TODO: forward pruning to all children with UNKNOWN required interface // forward pruning to all children with UNKNOWN required interface
for (const Stage::pointer& stage : children()) {
if (stage->pimpl()->requiredInterface() == UNKNOWN)
stage->pimpl()->pruneInterface(accepted);
}
} }
void ParallelContainerBasePrivate::onNewExternalState(Interface::Direction dir, Interface::iterator external, bool updated) { void ParallelContainerBasePrivate::onNewExternalState(Interface::Direction dir, Interface::iterator external, bool updated) {