MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ find()

template<typename OpType >
std::shared_ptr< OpType > MayaFlux::Nodes::Network::OperatorChain::find ( ) const
inline

Return the first operator whose dynamic type matches OpType, or nullptr.

Template Parameters
OpTypeType to search for.

Definition at line 113 of file OperatorChain.hpp.

114 {
115 for (const auto& op : m_operators) {
116 if (auto cast = std::dynamic_pointer_cast<OpType>(op))
117 return cast;
118 }
119 return nullptr;
120 }
std::vector< std::shared_ptr< NetworkOperator > > m_operators