libcaf
0.13.2
|
Identifies an untyped actor. More...
#include <actor.hpp>
Inherits comparable< actor >, comparable< actor, actor_addr >, comparable< actor, invalid_actor_t >, and comparable< actor, invalid_actor_addr_t >.
Public Member Functions | |
actor (actor &&)=default | |
actor (const actor &)=default | |
template<class T > | |
actor (intrusive_ptr< T > ptr, typename std::enable_if< is_convertible_to_actor< T >::value >::type *=0) | |
template<class T > | |
actor (T *ptr, typename std::enable_if< is_convertible_to_actor< T >::value >::type *=0) | |
actor (const invalid_actor_t &) | |
actor & | operator= (actor &&)=default |
actor & | operator= (const actor &)=default |
template<class T > | |
std::enable_if< is_convertible_to_actor< T >::value, actor & >::type | operator= (intrusive_ptr< T > ptr) |
template<class T > | |
std::enable_if< is_convertible_to_actor< T >::value, actor & >::type | operator= (T *ptr) |
actor & | operator= (const invalid_actor_t &) |
operator bool () const | |
bool | operator! () const |
abstract_actor * | operator-> () const |
Returns a handle that grants access to actor operations such as enqueue. | |
abstract_actor & | operator* () const |
intptr_t | compare (const actor &other) const |
intptr_t | compare (const actor_addr &) const |
intptr_t | compare (const invalid_actor_t &) const |
intptr_t | compare (const invalid_actor_addr_t &) const |
actor_addr | address () const |
Returns the address of the stored actor. | |
bool | is_remote () const |
Returns whether this is an handle to a remote actor. | |
actor_id | id () const |
void | swap (actor &other) |
Friends | |
class | local_actor |
template<class T , typename U > | |
T | actor_cast (const U &) |
Converts actor handle what to a different actor handle of type T . | |
Related Functions | |
(Note that these are not member functions.) | |
constexpr invalid_actor_t | invalid_actor = invalid_actor_t{} |
Identifies an invalid actor. | |
std::string | to_string (const actor &what) |
Identifies an untyped actor.
Can be used with derived types of event_based_actor
, blocking_actor
, and actor_proxy
.
|
related |