|
Zth (libzth)
|
A coroutine generator producing a sequence of values. More...
#include <coro.h>
Public Types | |
| using | promise_type = generator_promise< T... > |
| using | Mailbox_types = typename promise_type::Mailbox_types |
Public Member Functions | |
| generator (std::coroutine_handle< promise_type > h) noexcept | |
| generator (zth::SharedPointer< promise_type > const &p) noexcept | |
| generator (zth::SharedPointer< promise_type > &&p) noexcept | |
| generator (promise_type *p=nullptr) noexcept | |
| promise_type * | promise () const noexcept |
| char const * | id_str () const noexcept |
| void | setName (string name) noexcept |
| bool | completed () const noexcept |
| template<typename U = typename promise_type::first_yield_type> | |
| auto & | mailbox () const |
| template<typename U > | |
| decltype(auto) | as () const |
| template<typename U = typename promise_type::first_yield_type> | |
| bool | valid () const noexcept |
| template<typename U = typename promise_type::first_yield_type> | |
| decltype(auto) | value () |
| template<typename U = typename promise_type::first_yield_type> | |
| void | generate () |
| void | run () |
| decltype(auto) | fiber (char const *name=nullptr) |
| decltype(auto) | begin () |
| promise_type::end_type | end () |
A coroutine generator producing a sequence of values.
| T | The yield types of the generator. At least one type must be specified, and void is not allowed. |
| using zth::coro::generator< T >::Mailbox_types = typename promise_type::Mailbox_types |
| using zth::coro::generator< T >::promise_type = generator_promise<T...> |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |