A multicast group.
More...
#include <abstract_group.hpp>
|
| class | module |
| | Interface for user-defined multicast implementations. More...
|
| |
|
|
using | module_ptr = module * |
| |
|
using | unique_module_ptr = std::unique_ptr< module > |
| |
|
|
virtual void | save (serializer &sink) const =0 |
| |
| const std::string & | identifier () const |
| | Returns a string representation of the group identifier, e.g., "224.0.0.1" for IPv4 multicast or a user-defined string for local groups. More...
|
| |
|
module_ptr | get_module () const |
| |
|
const std::string & | module_name () const |
| | Returns the name of the module.
|
| |
| virtual bool | subscribe (strong_actor_ptr who)=0 |
| | Subscribes who to this group and returns true on success or false if who is already subscribed. More...
|
| |
|
virtual void | stop ()=0 |
| | Stops any background actors or threads and IO handles.
|
| |
|
actor_system & | system () |
| |
|
| ref_counted (const ref_counted &) |
| |
|
ref_counted & | operator= (const ref_counted &) |
| |
|
void | ref () noexcept |
| | Increases reference count by one.
|
| |
| void | deref () noexcept |
| | Decreases reference count by one and calls request_deletion when it drops to zero. More...
|
| |
|
bool | unique () const noexcept |
| | Queries whether there is exactly one reference.
|
| |
|
size_t | get_reference_count () const noexcept |
| |
| virtual void | request_deletion (bool decremented_rc) noexcept |
| | Default implementations calls `delete this, but can be overriden in case deletion depends on some condition or the class doesn't use default new/delete. More...
|
| |
|
virtual void | enqueue (strong_actor_ptr sender, message_id mid, message content, execution_unit *host=nullptr)=0 |
| | Enqueues a new message without forwarding stack to the channel.
|
| |
|
bool | is_abstract_actor () const |
| |
|
bool | is_abstract_group () const |
| |
|
bool | is_actor_decorator () const |
| |
|
|
actor_system & | system_ |
| |
|
module_ptr | module_ |
| |
|
std::string | identifier_ |
| |
|
node_id | origin_ |
| |
|
std::atomic< size_t > | rc_ |
| |
|
|
class | local_actor |
| |
|
class | subscription |
| |
|
class | detail::group_manager |
| |
|
|
static constexpr int | is_abstract_actor_flag = 0x01000000 |
| |
|
static constexpr int | is_abstract_group_flag = 0x02000000 |
| |
|
static constexpr int | is_actor_bind_decorator_flag = 0x04000000 |
| |
|
static constexpr int | is_actor_dot_decorator_flag = 0x08000000 |
| |
|
static constexpr int | is_actor_decorator_mask = 0x0C000000 |
| |
| void | intrusive_ptr_add_ref (ref_counted *p) |
| |
| void | intrusive_ptr_release (ref_counted *p) |
| |
| const std::string& caf::abstract_group::identifier |
( |
| ) |
const |
Returns a string representation of the group identifier, e.g., "224.0.0.1" for IPv4 multicast or a user-defined string for local groups.
Subscribes who to this group and returns true on success or false if who is already subscribed.
The documentation for this class was generated from the following file:
- libcaf_core/caf/abstract_group.hpp