C++ Actor Framework 0.18
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | Related Functions | List of all members
caf::attachable Class Reference

Callback utility class. More...

#include <attachable.hpp>

Inherited by caf::default_attachable, caf::detail::functor_attachable< F >, and caf::stream_aborter.

Classes

struct  token
 Represents a pointer to a value with its subtype as type ID number. More...
 

Public Member Functions

 attachable (const attachable &)=delete
 
attachableoperator= (const attachable &)=delete
 
virtual void actor_exited (const error &fail_state, execution_unit *host)
 Executed if the actor finished execution with given reason.
 
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.
 

Public Attributes

std::unique_ptr< attachablenext
 

Related Functions

(Note that these are not member functions.)

using attachable_ptr = std::unique_ptr< attachable >
 

Detailed Description

Callback utility class.

Member Function Documentation

◆ actor_exited()

virtual void caf::attachable::actor_exited ( const error fail_state,
execution_unit host 
)
virtual

Executed if the actor finished execution with given reason.

The default implementation does nothing.

Warning
host can be nullptr

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