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

◆ update_params_impl() [2/2]

template<typename T , typename... Args>
void MayaFlux::Vruta::Routine::update_params_impl ( const std::string &  key,
value,
Args...  args 
)
inlineprotected

Implementation helper for update_params.

Parameters
promiseThe promise object to update
keyName of the state value
valueValue to store
argsRemaining key-value pairs to process

Recursive template function that processes each key-value pair in the update_params variadic argument list.

Definition at line 266 of file Routine.hpp.

267 {
268 set_state(key, std::move(value));
269 if constexpr (sizeof...(args) > 0) {
270 update_params_impl(std::forward<Args>(args)...);
271 }
272 }
void set_state(const std::string &key, T value)
Sets a named state value in the coroutine.
Definition Routine.hpp:207
virtual void update_params_impl()
brief Implementation helper for update_params
Definition Routine.hpp:253