emlabcpp
modern opinionated embedded C++ library
emlabcpp::testing::collect_awaiter Class Reference

#include <collect.h>

+ Inheritance diagram for emlabcpp::testing::collect_awaiter:
+ Collaboration diagram for emlabcpp::testing::collect_awaiter:

Public Member Functions

 collect_awaiter (collect_request const &req, collector &coll)
 
coro_state get_state () const override
 
void tick () override
 
bool await_ready () const
 
void await_suspend (std::coroutine_handle< coroutine< void >::promise_type > h)
 
node_id await_resume () const
 
- Public Member Functions inherited from emlabcpp::testing::wait_interface
virtual ~wait_interface ()=default
 

Public Attributes

collect_request req
 
node_id res {}
 
coro_state state = coro_state::WAITING
 
collectorcol
 

Constructor & Destructor Documentation

◆ collect_awaiter()

emlabcpp::testing::collect_awaiter::collect_awaiter ( collect_request const &  req,
collector coll 
)

Member Function Documentation

◆ await_ready()

bool emlabcpp::testing::collect_awaiter::await_ready ( ) const
inline

◆ await_resume()

node_id emlabcpp::testing::collect_awaiter::await_resume ( ) const
inline

References emlabcpp::res.

◆ await_suspend()

void emlabcpp::testing::collect_awaiter::await_suspend ( std::coroutine_handle< coroutine< void >::promise_type >  h)

◆ get_state()

coro_state emlabcpp::testing::collect_awaiter::get_state ( ) const
inlineoverridevirtual

◆ tick()

void emlabcpp::testing::collect_awaiter::tick ( )
inlineoverridevirtual

Reimplemented from emlabcpp::testing::wait_interface.

Member Data Documentation

◆ col

collector& emlabcpp::testing::collect_awaiter::col

◆ req

collect_request emlabcpp::testing::collect_awaiter::req

◆ res

node_id emlabcpp::testing::collect_awaiter::res {}

◆ state

coro_state emlabcpp::testing::collect_awaiter::state = coro_state::WAITING

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