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

◆ reset() [2/2]

template<typename Executor , ComputeData DataType>
FluentExecutor & MayaFlux::Yantra::FluentExecutor< Executor, DataType >::reset ( const Datum< DataType > &  new_datum)
inline

Reset the chain with a new Datum, clearing history and errors.

Primary reset overload. Replaces internal state with new_datum, restoring the chain to a successful state ready for reuse.

Parameters
new_datumDatum to restart the chain from
Returns
Reference to this executor for continued chaining

Definition at line 487 of file OperationChain.hpp.

488 {
489 m_data = new_datum;
490 m_successful = true;
491 m_operation_history.clear();
492 m_errors.clear();
493 return *this;
494 }
std::vector< std::string > m_errors
std::vector< std::string > m_operation_history