C++ Actor Framework 0.19
|
Provides access to a statically typed, potentially unbound sequence of items emitted by an actor. More...
#include <typed_stream.hpp>
Public Member Functions | |
typed_stream (typed_stream &&) noexcept=default | |
typed_stream (const typed_stream &) noexcept=default | |
typed_stream & | operator= (typed_stream &&) noexcept=default |
typed_stream & | operator= (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_ptr & | source () 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) |
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.
|
noexcept |
Queries the source of this stream.
Default-constructed streams return a null
pointer.