libcaf  0.14.4
Public Member Functions | Friends | Related Functions | List of all members
caf::actor_addr Class Reference

Stores the address of typed as well as untyped actors. More...

#include <actor_addr.hpp>

Inherits comparable< actor_addr >, comparable< actor_addr, abstract_actor * >, and comparable< actor_addr, abstract_actor_ptr >.

Public Member Functions

 actor_addr (actor_addr &&)=default
 
 actor_addr (const actor_addr &)=default
 
actor_addroperator= (actor_addr &&)=default
 
actor_addroperator= (const actor_addr &)=default
 
 actor_addr (const invalid_actor_addr_t &)
 
actor_addr operator= (const invalid_actor_addr_t &)
 
 operator bool () const noexcept
 Returns *this != invalid_actor_addr.
 
bool operator! () const noexcept
 Returns *this == invalid_actor_addr.
 
bool is_remote () const noexcept
 Returns whether this is an handle to a remote actor.
 
actor_id id () const noexcept
 Returns the ID of this actor.
 
node_id node () const noexcept
 Returns the origin node of this actor.
 
void swap (actor_addr &other) noexcept
 Exchange content of *this and other.
 

Friends

class actor
 
class abstract_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_addr_t invalid_actor_addr = invalid_actor_addr_t{}
 Identifies an invalid actor_addr.
 
std::string to_string (const actor_addr &what)
 

Detailed Description

Stores the address of typed as well as untyped actors.

Examples:
dining_philosophers.cpp.

Friends And Related Function Documentation

std::string to_string ( const actor_addr what)
related

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