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

◆ execute_named()

template<typename OpClass , ComputeData InputType, ComputeData OutputType = InputType>
std::optional< IO< OutputType > > MayaFlux::Yantra::ComputeMatrix::execute_named ( const std::string &  name,
const InputType &  input 
)
inline

Execute a named operation from the pool.

Template Parameters
OpClassOperation class type
InputTypeInput data type
OutputTypeOutput data type
Parameters
nameName of the operation
inputInput data
Returns
Optional containing result or nullopt on failure

Definition at line 148 of file ComputeMatrix.hpp.

149 {
150 auto operation = m_operations.get<OpClass>(name);
151 if (!operation)
152 return std::nullopt;
153 return execute_operation<OpClass, InputType, OutputType>(operation, input);
154 }
std::shared_ptr< OpClass > get(const std::string &name)
Get operation from pool with type safety.