MayaFlux 1.0.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 607 of file OperationChain.hpp.

608 {
609 m_data = new_datum;
610 m_successful = true;
611 m_operation_history.clear();
612 m_errors.clear();
613 return *this;
614 }
std::vector< std::string > m_errors
std::vector< std::string > m_operation_history