C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::typed_event_based_actor< T1, T2, Ts... > Class Template Reference

A cooperatively scheduled, event-based actor implementation with static type-checking. More...

#include <typed_event_based_actor.hpp>

Inheritance diagram for caf::typed_event_based_actor< T1, T2, Ts... >:
caf::statically_typed_actor_base

Public Types

using super
 
using trait = statically_typed<T1, T2, Ts...>
 
using signatures = typename trait::signatures
 
using behavior_type = typed_behavior<T1, T2, Ts...>
 
using actor_hdl = typed_actor<T1, T2, Ts...>
 

Public Member Functions

std::set< std::string > message_types () const override
 
void initialize () override
 
template<class... Args>
auto mail (Args &&... args)
 
template<class Arg , class... Args>
void become (Arg &&arg, Args &&... args)
 
void unbecome ()
 

Protected Member Functions

virtual behavior_type make_behavior ()
 

Detailed Description

template<class T1, class T2, class... Ts>
class caf::typed_event_based_actor< T1, T2, Ts... >

A cooperatively scheduled, event-based actor implementation with static type-checking.

actor

Note
This is a specialization for backwards compatibility with pre v1.0 releases. Please use the trait based implementation.

Member Typedef Documentation

◆ super

template<class T1 , class T2 , class... Ts>
using caf::typed_event_based_actor< T1, T2, Ts... >::super
Initial value:
typename extend<scheduled_actor, typed_event_based_actor<T1, T2, Ts...>>::
template with<mixin::sender, mixin::requester>

Member Function Documentation

◆ become()

template<class T1 , class T2 , class... Ts>
template<class Arg , class... Args>
void caf::typed_event_based_actor< T1, T2, Ts... >::become ( Arg && arg,
Args &&... args )

◆ unbecome()

template<class T1 , class T2 , class... Ts>
void caf::typed_event_based_actor< T1, T2, Ts... >::unbecome ( )


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