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

Provides access to a statically typed, potentially unbound sequence of items emitted by an actor. More...

#include <typed_stream.hpp>

Inheritance diagram for caf::typed_stream< T >:
caf::detail::comparable< typed_stream< T > > caf::detail::comparable< stream >

Public Member Functions

 typed_stream (typed_stream &&) noexcept=default
 
 typed_stream (const typed_stream &) noexcept=default
 
typed_streamoperator= (typed_stream &&) noexcept=default
 
typed_streamoperator= (const typed_stream &) noexcept=default
 
 typed_stream (strong_actor_ptr source, std::string name, uint64_t id)
 
 typed_stream (strong_actor_ptr source, cow_string name, uint64_t id)
 
const strong_actor_ptrsource () const noexcept
 Queries the source of this stream.
 
const std::string & name () const noexcept
 Returns the human-readable name for this stream, as announced by the source.
 
uint64_t id () const noexcept
 Returns the source-specific identifier for this stream.
 
stream dynamically_typed () const noexcept
 Returns a dynamically typed version of this stream.
 
ptrdiff_t compare (const stream &other) const noexcept
 
ptrdiff_t compare (const typed_stream &other) const noexcept
 

Friends

template<class Inspector >
bool inspect (Inspector &f, typed_stream &obj)
 

Detailed Description

template<class T>
class caf::typed_stream< T >

Provides access to a statically typed, potentially unbound sequence of items emitted by an actor.

Each stream is uniquely identified by the address of the hosting actor plus an integer value. Further, streams have human-readable names attached to them in order to make help with observability and logging.

Member Function Documentation

◆ source()

template<class T >
const strong_actor_ptr & caf::typed_stream< T >::source ( ) const
noexcept

Queries the source of this stream.

Default-constructed streams return a null pointer.


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