libcaf  0.13.2
Public Member Functions | Friends | Related Functions | List of all members
caf::actor Class Reference

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 &)
 
actoroperator= (actor &&)=default
 
actoroperator= (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)
 
actoroperator= (const invalid_actor_t &)
 
 operator bool () const
 
bool operator! () const
 
abstract_actoroperator-> () const
 Returns a handle that grants access to actor operations such as enqueue.
 
abstract_actoroperator* () 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 >
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)
 

Detailed Description

Identifies an untyped actor.

Can be used with derived types of event_based_actor, blocking_actor, and actor_proxy.

Examples:
hello_world.cpp.

Friends And Related Function Documentation

std::string to_string ( const actor what)
related

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