emlabcpp
modern opinionated embedded C++ library
emlabcpp::testing::coroutine< T > Class Template Reference

#include <coroutine.h>

+ Inheritance diagram for emlabcpp::testing::coroutine< T >:
+ Collaboration diagram for emlabcpp::testing::coroutine< T >:

Classes

struct  promise_type
 

Public Types

using handle = std::coroutine_handle< promise_type >
 
using owning_handle = coro::owning_coroutine_handle< promise_type >
 

Public Member Functions

 coroutine ()=default
 
 coroutine (handle const &cor)
 
 coroutine (coro_state s)
 
bool done () const
 
coro_state get_state () const override
 
bool await_ready () const
 
void await_suspend (auto const &h)
 
auto await_resume ()
 
auto run ()
 
void tick () override
 
- Public Member Functions inherited from emlabcpp::testing::wait_interface
virtual ~wait_interface ()=default
 

Member Typedef Documentation

◆ handle

template<typename T >
using emlabcpp::testing::coroutine< T >::handle = std::coroutine_handle< promise_type >

◆ owning_handle

Constructor & Destructor Documentation

◆ coroutine() [1/3]

template<typename T >
emlabcpp::testing::coroutine< T >::coroutine ( )
explicitdefault

◆ coroutine() [2/3]

template<typename T >
emlabcpp::testing::coroutine< T >::coroutine ( handle const &  cor)
inlineexplicit

◆ coroutine() [3/3]

template<typename T >
emlabcpp::testing::coroutine< T >::coroutine ( coro_state  s)
inlineexplicit

Member Function Documentation

◆ await_ready()

template<typename T >
bool emlabcpp::testing::coroutine< T >::await_ready ( ) const
inline

◆ await_resume()

◆ await_suspend()

template<typename T >
void emlabcpp::testing::coroutine< T >::await_suspend ( auto const &  h)
inline

◆ done()

template<typename T >
bool emlabcpp::testing::coroutine< T >::done ( ) const
inline

◆ get_state()

template<typename T >
coro_state emlabcpp::testing::coroutine< T >::get_state ( ) const
inlineoverridevirtual

◆ run()

◆ tick()


The documentation for this class was generated from the following file: