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

◆ create_operator()

template<typename OpType , typename... Args>
std::shared_ptr< OpType > MayaFlux::Nodes::Network::MeshNetwork::create_operator ( Args &&...  args)
inline

Construct and set the primary operator in one call.

Template Parameters
OpTypeConcrete operator type.
Returns
Shared pointer to the new operator.

Definition at line 123 of file MeshNetwork.hpp.

124 {
125 auto op = std::make_shared<OpType>(std::forward<Args>(args)...);
126 set_operator(op);
127 return op;
128 }
void set_operator(std::shared_ptr< NetworkOperator > op)
Replace the primary operator.