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

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

#include <hot.hpp>

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

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

 hot (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.
 
- 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::plain_ref_counted
size_t rc_
 

Detailed Description

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

Convenience base type for hot observable types.

Member Function Documentation

◆ ctx()

template<class T >
coordinator * caf::flow::op::hot< 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::hot< T >::deref_coordinated ( ) const
overridevirtualnoexcept

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

Implements caf::flow::coordinated.

Reimplemented in caf::flow::op::publish< T >.

◆ ref_coordinated()

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

Increases the reference count of the coordinated.

Implements caf::flow::coordinated.

Reimplemented in caf::flow::op::publish< T >.


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