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

◆ add_operation()

template<typename OpClass >
bool MayaFlux::Yantra::ComputeMatrix::add_operation ( const std::string &  name,
std::shared_ptr< OpClass >  operation 
)
inline

Add a pre-configured operation instance to this matrix.

Template Parameters
OpClassOperation class type
Parameters
nameUnique name within this matrix
operationShared pointer to the operation
Returns
true if added successfully

Definition at line 58 of file ComputeMatrix.hpp.

59 {
60 if (!operation)
61 return false;
62 return m_operations.add(name, operation);
63 }
bool add(const std::string &name, std::shared_ptr< OpClass > op)
Add named operation to pool.