Replace the termination at the mouth.
- Returns
- False, changing nothing, when it cannot terminate this duct
Definition at line 330 of file DuctNetwork.cpp.
331{
334 if (!next) {
335 return false;
336 }
337
338 next->keep_state = true;
339
341 m_mouth = std::move(termination);
344 return true;
345}
std::shared_ptr< Prepared > build(double length, const Profile &profile, const Losses &losses, double mouth_volume, const std::shared_ptr< TerminationOperator > &mouth, const std::shared_ptr< TerminationOperator > &bell) const
std::shared_ptr< TerminationOperator > m_mouth
void publish(std::shared_ptr< Prepared > next)
std::shared_ptr< TerminationOperator > m_bell
std::mutex m_producer_mutex
std::shared_ptr< OperatorChain > m_operator_chain
References build(), m_bell, m_length, m_losses, m_mouth, m_mouth_volume, MayaFlux::Nodes::Network::NodeNetwork::m_operator_chain, m_producer_mutex, m_profile, and publish().