Provides a common scaffold for implementations of the stream_gatherer
and stream_scatterer
interfaces.
More...
#include <stream_edge_impl.hpp>
Inherits Base.
|
| stream_edge_impl (local_actor *selfptr) |
|
const path_uptr_vec & | paths () const |
| Returns all available paths.
|
|
local_actor * | self () const |
| Returns a pointer to the parent actor.
|
|
bool | remove_path (path_uptr_iter i, error reason, bool silent) |
|
bool | remove_path (const stream_id &sid, const actor_addr &x, error reason, bool silent) override |
|
void | abort (error reason) override |
|
long | num_paths () const override |
|
bool | closed () const override |
|
bool | continuous () const override |
|
void | continuous (bool value) override |
|
path_ptr | path_at (size_t index) override |
|
path_ptr | find (const stream_id &sid, const actor_addr &x) override |
|
|
template<class PathContainer > |
static void | sort_by_credit (PathContainer &xs) |
| Sorts xs in descending order by available credit.
|
|
template<class T , class PathContainer , class F > |
static T | fold (PathContainer &xs, T init, F f) |
|
template<class PathContainer , class Handle > |
static path_ptr | find (PathContainer &xs, const stream_id &sid, const Handle &x) |
| Finds the path for ptr and returns a pointer to it.
|
|
template<class PathContainer , class Handle > |
static PathContainer::iterator | iter_find (PathContainer &xs, const stream_id &sid, const Handle &x) |
| Finds the path for ptr and returns an iterator to it.
|
|
|
static constexpr const auto | aborter_type = path_type::aborter_type |
| Stream aborter flag to monitor paths.
|
|
template<class Base>
class caf::stream_edge_impl< Base >
Provides a common scaffold for implementations of the stream_gatherer
and stream_scatterer
interfaces.
◆ irregular_shutdown
◆ regular_shutdown
The documentation for this class was generated from the following file:
- libcaf_core/caf/stream_edge_impl.hpp