C++ Actor Framework 1.0.0
|
Handle to a consumer of items. More...
#include <observer.hpp>
Classes | |
class | impl |
Internal interface of an observer . More... | |
Public Types | |
using | input_type = T |
Public Member Functions | |
observer (intrusive_ptr< impl > pimpl) noexcept | |
observer (observer &&) noexcept=default | |
observer (const observer &) noexcept=default | |
observer & | operator= (observer &&) noexcept=default |
observer & | operator= (const observer &) noexcept=default |
void | release_later () |
Resets this handle but releases the reference count after the current coordinator cycle. | |
void | on_complete () |
void | on_error (const error &what) |
void | on_subscribe (subscription sub) |
void | on_batch (const async::batch &buf) |
void | on_next (const T &item) |
bool | valid () const noexcept |
operator bool () const noexcept | |
bool | operator! () const noexcept |
void | swap (observer &other) noexcept |
intptr_t | compare (const observer &other) const noexcept |
impl * | ptr () noexcept |
const impl * | ptr () const noexcept |
Related Symbols | |
(Note that these are not member symbols.) | |
template<class T > | |
using | observer_impl = typename observer<T>::impl |
Handle to a consumer of items.
void caf::flow::observer< T >::on_batch | ( | const async::batch & | buf | ) |
valid()
void caf::flow::observer< T >::on_complete | ( | ) |
valid()
!valid()
void caf::flow::observer< T >::on_error | ( | const error & | what | ) |
valid()
!valid()
void caf::flow::observer< T >::on_next | ( | const T & | item | ) |
valid()
void caf::flow::observer< T >::on_subscribe | ( | subscription | sub | ) |
valid()
void caf::flow::observer< T >::release_later | ( | ) |
Resets this handle but releases the reference count after the current coordinator cycle.
!valid()