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

◆ get_state_impl_raw()

void * MayaFlux::Vruta::SoundRoutine::get_state_impl_raw ( const std::string &  key)
overrideprotectedvirtual

Implements MayaFlux::Vruta::Routine.

Definition at line 204 of file Routine.cpp.

205{
206 if (!m_handle) {
207 return nullptr;
208 }
209
210 auto& state_map = m_handle.promise().state;
211 auto it = state_map.find(key);
212 if (it != state_map.end()) {
213 return &it->second;
214 }
215 return nullptr;
216}
std::coroutine_handle< promise_type > m_handle
Handle to the underlying coroutine.
Definition Routine.hpp:469

References m_handle.