libcaf  0.13.2
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
caf::typed_actor< Sigs > Class Template Reference

Identifies a strongly typed actor. More...

#include <typed_actor.hpp>

Inherits comparable< typed_actor< Sigs...> >, comparable< typed_actor< Sigs...>, actor_addr >, and comparable< typed_actor< Sigs...>, invalid_actor_addr_t >.

Public Types

using behavior_type = typed_behavior< Sigs...>
 Identifies the behavior type actors of this kind use for their behavior stack. More...
 
using pointer = typed_event_based_actor< Sigs...> *
 Identifies pointers to instances of this kind of actor.
 
using base = typed_event_based_actor< Sigs...>
 Identifies the base class for this kind of actor.
 
using broker_pointer = io::experimental::typed_broker< Sigs...> *
 Identifies pointers to brokers implementing this interface.
 
using broker_base = io::experimental::typed_broker< Sigs...>
 Identifies the base class of brokers implementing this interface.
 

Public Member Functions

 typed_actor (typed_actor &&)=default
 
 typed_actor (const typed_actor &)=default
 
typed_actoroperator= (typed_actor &&)=default
 
typed_actoroperator= (const typed_actor &)=default
 
template<class... OtherSigs>
 typed_actor (const typed_actor< OtherSigs...> &other)
 
template<class... OtherSigs>
typed_actoroperator= (const typed_actor< OtherSigs...> &other)
 
template<class Impl >
 typed_actor (intrusive_ptr< Impl > other)
 
abstract_actoroperator-> () const
 
abstract_actoroperator* () const
 
actor_addr address () const
 Queries the address of the stored actor.
 
intptr_t compare (const actor_addr &rhs) const
 
intptr_t compare (const typed_actor &other) const
 
intptr_t compare (const invalid_actor_addr_t &) const
 
 operator bool () const
 
bool operator! () const
 

Static Public Member Functions

static std::set< std::string > message_types ()
 

Friends

class local_actor
 
template<class... >
class typed_actor
 
template<class T , typename U >
actor_cast (const U &)
 Converts actor handle what to a different actor handle of type T.
 

Detailed Description

template<class... Sigs>
class caf::typed_actor< Sigs >

Identifies a strongly typed actor.

Template Parameters
SigsSignature of this actor as replies_to<...>::with<...> parameter pack.
Examples:
dining_philosophers.cpp.

Member Typedef Documentation

template<class... Sigs>
using caf::typed_actor< Sigs >::behavior_type = typed_behavior<Sigs...>

Identifies the behavior type actors of this kind use for their behavior stack.


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