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

◆ get_state()

template<typename T >
T * MayaFlux::Vruta::Routine::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 222 of file Routine.hpp.

223 {
224 return get_state_impl<T>(key);
225 }