Callback utility class.
More...
#include <attachable.hpp>
Inherited by caf::abstract_group::subscription, and caf::default_attachable.
|
| struct | token |
| | Represents a pointer to a value with its subtype as type ID number. More...
|
| |
|
|
| attachable (const attachable &)=delete |
| |
|
attachable & | operator= (const attachable &)=delete |
| |
| virtual optional< uint32_t > | handle_exception (const std::exception_ptr &eptr) |
| | Executed if the actor did not handle an exception and must not return none if this attachable did handle eptr. More...
|
| |
| virtual void | actor_exited (abstract_actor *self, uint32_t reason) |
| | Executed if the actor finished execution with given reason. More...
|
| |
|
virtual bool | matches (const token &what) |
| | Returns true if what selects this instance, otherwise false.
|
| |
|
template<class T > |
| bool | matches (const T &what) |
| | Returns true if what selects this instance, otherwise false.
|
| |
| virtual void caf::attachable::actor_exited |
( |
abstract_actor * |
self, |
|
|
uint32_t |
reason |
|
) |
| |
|
virtual |
Executed if the actor finished execution with given reason.
The default implementation does nothing.
| virtual optional<uint32_t> caf::attachable::handle_exception |
( |
const std::exception_ptr & |
eptr | ) |
|
|
virtual |
Executed if the actor did not handle an exception and must not return none if this attachable did handle eptr.
Note that the first handler to handle eptr "wins" and no other handler will be invoked.
- Returns
- The exit reason the actor should use.
The documentation for this class was generated from the following file:
- libcaf_core/caf/attachable.hpp