KiCad PCB EDA Suite
|
A simple harness that counts to a preset value in a couroutine, yielding each value. More...
Public Member Functions | |
CoroutineExample (int aCount) | |
int | CountTo (int n) |
void | Run () |
Public Attributes | |
std::unique_ptr< MyCoroutine > | m_cofunc |
int | m_count |
A simple harness that counts to a preset value in a couroutine, yielding each value.
This is a user-facing version of the "Increment" unit test in the "Coroutine" suite, in qa_common.
Definition at line 47 of file coroutines.cpp.
|
inline |
Definition at line 50 of file coroutines.cpp.
|
inline |
|
inline |
Definition at line 64 of file coroutines.cpp.
References CountTo(), m_cofunc, and m_count.
Referenced by coroutine_main_func().
std::unique_ptr<MyCoroutine> CoroutineExample::m_cofunc |
Definition at line 75 of file coroutines.cpp.
int CoroutineExample::m_count |
Definition at line 76 of file coroutines.cpp.
Referenced by Run().