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

Convenience base type for cold observable types. More...

#include <cold.hpp>

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

Public Types

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

 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::atomic_ref_counted
 atomic_ref_counted (const atomic_ref_counted &)
 
atomic_ref_countedoperator= (const atomic_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.
 
- Public Member Functions inherited from caf::flow::op::base< T >
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.
 

Protected Attributes

coordinatorctx_
 
- Protected Attributes inherited from caf::detail::atomic_ref_counted
std::atomic< size_t > rc_
 

Detailed Description

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

Convenience base type for cold observable types.

Member Function Documentation

◆ ctx()

template<class T >
coordinator * caf::flow::op::cold< T >::ctx ( ) const
overridevirtualnoexcept

Returns the coordinator that executes this flow operator.

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

◆ deref_coordinated()

template<class T >
void caf::flow::op::cold< T >::deref_coordinated ( ) const
overridevirtualnoexcept

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

Implements caf::flow::coordinated.

◆ ref_coordinated()

template<class T >
void caf::flow::op::cold< T >::ref_coordinated ( ) const
overridevirtualnoexcept

Increases the reference count of the coordinated.

Implements caf::flow::coordinated.


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