C++ Actor Framework 0.19
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
caf::flow::op::never< T > Class Template Reference

An observable that never calls any callbacks on its subscribers. More...

#include <never.hpp>

Inheritance diagram for caf::flow::op::never< T >:
caf::flow::op::cold< T > caf::detail::plain_ref_counted caf::flow::op::base< T > caf::flow::coordinated

Public Types

using super = cold< T >
 
using output_type = T
 
- Public Types inherited from caf::flow::op::cold< T >
using output_type = T
 
- Public Types inherited from caf::flow::op::base< T >
using output_type = T
 The type of observed values.
 

Public Member Functions

 never (coordinator *ctx)
 
disposable subscribe (observer< output_type > out) override
 Subscribes a new observer to the operator.
 
- Public Member Functions inherited from caf::flow::op::cold< T >
 cold (coordinator *ctx)
 
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.
 
coordinatorctx () const noexcept override
 Returns the coordinator that executes this flow operator.
 
- 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.
 
virtual coordinatorctx () const noexcept=0
 Returns the coordinator that executes this flow operator.
 
virtual disposable subscribe (observer< T > what)=0
 Subscribes a new observer to the operator.
 
virtual void ref_coordinated () const noexcept=0
 Increases the reference count of the coordinated.
 
virtual void deref_coordinated () const noexcept=0
 Decreases the reference count of the coordinated and destroys the object if necessary.
 

Additional Inherited Members

- Protected Attributes inherited from caf::flow::op::cold< T >
coordinatorctx_
 
- Protected Attributes inherited from caf::detail::plain_ref_counted
size_t rc_
 

Detailed Description

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

An observable that never calls any callbacks on its subscribers.

Member Function Documentation

◆ subscribe()

template<class T >
disposable caf::flow::op::never< T >::subscribe ( observer< output_type >  what)
overridevirtual

Subscribes a new observer to the operator.

Implements caf::flow::op::base< T >.


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