libcaf  0.14.0
Public Types | Public Member Functions | List of all members
caf::abstract_event_based_actor< BehaviorType, HasSyncSend, Base > Class Template Reference

Base type for statically and dynamically typed event-based actors. More...

#include <abstract_event_based_actor.hpp>

Inherits Base.

Public Types

using behavior_type = BehaviorType
 

Public Member Functions

template<class... Ts>
 abstract_event_based_actor (Ts &&...xs)
 
void become (behavior_type bhvr)
 
void become (const keep_behavior_t &, behavior_type bhvr)
 
template<class T0 , class T1 , class... Ts>
std::enable_if< !std::is_same< keep_behavior_t, typename std::decay< T0 >::type >::value >::type become (T0 &&x0, T1 &&x1, Ts &&...xs)
 
template<class T0 , class T1 , class... Ts>
void become (const keep_behavior_t &, T0 &&x0, T1 &&x1, Ts &&...xs)
 
void unbecome ()
 

Detailed Description

template<class BehaviorType, bool HasSyncSend, class Base = local_actor>
class caf::abstract_event_based_actor< BehaviorType, HasSyncSend, Base >

Base type for statically and dynamically typed event-based actors.

Template Parameters
BehaviorTypeDenotes the expected type for become().
HasSyncSendConfigures whether this base extends sync_sender.
BaseEither local_actor (default) or a subtype thereof.

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