C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::flow::op::cell_sub< T > Class Template Reference

The subscription object for interfacing an observer with the cell state. More...

#include <cell.hpp>

Inheritance diagram for caf::flow::op::cell_sub< T >:
caf::flow::subscription::impl_base caf::flow::op::cell_listener< T > caf::detail::plain_ref_counted caf::flow::subscription::impl caf::flow::coordinated

Public Member Functions

 cell_sub (coordinator *parent, cell_sub_state_ptr< T > state, observer< T > out)
 
coordinatorparent () const noexcept override
 Returns the coordinator this object lives on.
 
bool disposed () const noexcept override
 
void request (size_t) override
 Signals demand for n more items.
 
void on_next (const T &item) override
 
void on_complete () override
 
void on_error (const error &what) override
 
void ref_listener () const noexcept override
 
void deref_listener () const noexcept override
 
- Public Member Functions inherited from caf::flow::subscription::impl_base
void ref_disposable () const noexcept override
 
void deref_disposable () const noexcept override
 
void ref_coordinated () const noexcept override
 Increases the reference count of the coordinated.
 
void deref_coordinated () const noexcept override
 Decreases the reference count of the coordinated and destroys the object if necessary.
 
void dispose () final
 
void cancel () final
 Signals that the observer is no longer interested in receiving items.
 
- Public Member Functions inherited from caf::detail::plain_ref_counted
 plain_ref_counted (const plain_ref_counted &)
 
plain_ref_countedoperator= (const plain_ref_counted &)
 
void ref () const noexcept
 Increases reference count by one.
 
void deref () const noexcept
 Decreases reference count by one and calls request_deletion when it drops to zero.
 
bool unique () const noexcept
 Queries whether there is exactly one reference.
 
size_t get_reference_count () const noexcept
 Queries the current reference count for this object.
 

Friends

void intrusive_ptr_add_ref (const cell_sub *ptr) noexcept
 
void intrusive_ptr_release (const cell_sub *ptr) noexcept
 

Additional Inherited Members

- Public Types inherited from caf::flow::subscription::impl
using handle_type = subscription
 
- Protected Attributes inherited from caf::detail::plain_ref_counted
size_t rc_
 

Detailed Description

template<class T>
class caf::flow::op::cell_sub< T >

The subscription object for interfacing an observer with the cell state.

Member Function Documentation

◆ deref_listener()

template<class T >
void caf::flow::op::cell_sub< T >::deref_listener ( ) const
overridevirtualnoexcept

◆ on_complete()

template<class T >
void caf::flow::op::cell_sub< T >::on_complete ( )
overridevirtual

◆ on_error()

template<class T >
void caf::flow::op::cell_sub< T >::on_error ( const error & what)
overridevirtual

◆ on_next()

template<class T >
void caf::flow::op::cell_sub< T >::on_next ( const T & item)
overridevirtual

◆ parent()

template<class T >
coordinator * caf::flow::op::cell_sub< T >::parent ( ) const
overridevirtualnoexcept

Returns the coordinator this object lives on.

Implements caf::flow::coordinated.

◆ ref_listener()

template<class T >
void caf::flow::op::cell_sub< T >::ref_listener ( ) const
overridevirtualnoexcept

◆ request()

template<class T >
void caf::flow::op::cell_sub< T >::request ( size_t n)
overridevirtual

Signals demand for n more items.

Implements caf::flow::subscription::impl.


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