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::Event::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 216 of file Event.hpp.

217 {
218 set_state(key, std::move(value));
219 if constexpr (sizeof...(args) > 0) {
220 update_params_impl(std::forward<Args>(args)...);
221 }
222 }
void set_state(const std::string &key, T value)
Sets a named state value in the coroutine.
Definition Event.hpp:156
virtual void update_params_impl()
brief Implementation helper for update_params
Definition Event.hpp:203