C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::async::producer Class Referenceabstract

Base type for asynchronous producers of events. More...

#include <producer.hpp>

Inheritance diagram for caf::async::producer:
caf::flow::buffer_writer_impl< Buffer >

Public Member Functions

virtual void on_consumer_ready ()=0
 Called to signal that the consumer started handling events.
 
virtual void on_consumer_cancel ()=0
 Called to signal that the consumer stopped handling events.
 
virtual void on_consumer_demand (size_t demand)=0
 Called to signal that the consumer requests more events.
 
virtual void ref_producer () const noexcept=0
 Increases the reference count of the producer.
 
virtual void deref_producer () const noexcept=0
 Decreases the reference count of the producer and destroys the object if necessary.
 

Related Symbols

(Note that these are not member symbols.)

using producer_ptr = intrusive_ptr<producer>
 
void intrusive_ptr_add_ref (const producer *p) noexcept
 
void intrusive_ptr_release (const producer *p) noexcept
 

Detailed Description

Base type for asynchronous producers of events.

Member Function Documentation

◆ deref_producer()

virtual void caf::async::producer::deref_producer ( ) const
pure virtualnoexcept

Decreases the reference count of the producer and destroys the object if necessary.

Implemented in caf::flow::buffer_writer_impl< Buffer >.

◆ on_consumer_cancel()

virtual void caf::async::producer::on_consumer_cancel ( )
pure virtual

Called to signal that the consumer stopped handling events.

Implemented in caf::flow::buffer_writer_impl< Buffer >.

◆ on_consumer_demand()

virtual void caf::async::producer::on_consumer_demand ( size_t demand)
pure virtual

Called to signal that the consumer requests more events.

Implemented in caf::flow::buffer_writer_impl< Buffer >.

◆ on_consumer_ready()

virtual void caf::async::producer::on_consumer_ready ( )
pure virtual

Called to signal that the consumer started handling events.

Implemented in caf::flow::buffer_writer_impl< Buffer >.

◆ ref_producer()

virtual void caf::async::producer::ref_producer ( ) const
pure virtualnoexcept

Increases the reference count of the producer.

Implemented in caf::flow::buffer_writer_impl< Buffer >.


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