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

◆ get_state()

template<typename T >
T * MayaFlux::Vruta::Event::get_state ( const std::string &  key)
inline

Gets a named state value from the coroutine.

Parameters
keyName of the state value to retrieve
Returns
Pointer to the stored value, or nullptr if not found

Retrieves a previously stored value from the coroutine's state dictionary. Returns nullptr if the key doesn't exist or the stored type doesn't match the requested type.

Definition at line 171 of file Event.hpp.

172 {
173 return get_state_impl<T>(key);
174 }