|
libcaf
0.15.0
|
Identifies a statically typed actor. More...
#include <typed_actor.hpp>
Inherits comparable< typed_actor< Sigs...> >, comparable< typed_actor< Sigs...>, actor_addr >, and comparable< typed_actor< Sigs...>, strong_actor_ptr >.
Public Types | |
| template<class... Es> | |
| using | extend = typed_actor< Sigs..., Es...> |
Creates a new typed_actor type by extending this one with Es.... | |
| template<class... Ts> | |
| using | extend_with = typename detail::extend_with_helper< typed_actor, Ts...>::type |
Creates a new typed_actor type by extending this one with another typed_actor. More... | |
| 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::typed_broker< Sigs...> * |
| Identifies pointers to brokers implementing this interface. | |
| using | broker_base = io::typed_broker< Sigs...> |
| Identifies the base class of brokers implementing this interface. | |
| using | signatures = detail::type_list< Sigs...> |
| Stores the template parameter pack. | |
| template<class State > | |
| using | stateful_base = stateful_actor< State, base > |
| Identifies the base class for this kind of actor with actor. | |
| template<class State > | |
| using | stateful_pointer = stateful_actor< State, base > * |
| Identifies the base class for this kind of actor with actor. | |
| template<class State > | |
| using | stateful_broker_base = stateful_actor< State, broker_base > |
| Identifies the broker_base class for this kind of actor with actor. | |
| template<class State > | |
| using | stateful_broker_pointer = stateful_actor< State, broker_base > * |
| Identifies the broker_base class for this kind of actor with actor. | |
Public Member Functions | |
| typed_actor (typed_actor &&)=default | |
| typed_actor (const typed_actor &)=default | |
| typed_actor & | operator= (typed_actor &&)=default |
| typed_actor & | operator= (const typed_actor &)=default |
| template<class... Ts> | |
| typed_actor (const typed_actor< Ts...> &other) | |
| template<class... Ts> | |
| typed_actor (typed_actor< Ts...> *ptr) | |
| template<class... Ts> | |
| typed_actor & | operator= (const typed_actor< Ts...> &other) |
| typed_actor (const unsafe_actor_handle_init_t &) | |
| actor_addr | address () const noexcept |
| Queries the address of the stored actor. | |
| actor_id | id () const noexcept |
| Returns the ID of this actor. | |
| node_id | node () const noexcept |
| Returns the origin node of this actor. | |
| actor_system & | home_system () const noexcept |
| Returns the hosting actor system. | |
| void | swap (typed_actor &other) noexcept |
Exchange content of *this and other. | |
| template<class... Ts> | |
| detail::mpi_bind< caf::typed_actor, detail::type_list< Sigs...>, typename std::decay< Ts >::type... >::type | bind (Ts &&...xs) const |
| bool | unsafe () const |
Queries whether this object was constructed using unsafe_actor_handle_init or is in moved-from state. More... | |
Static Public Attributes | |
| static constexpr bool | has_weak_ptr_semantics = false |
| static constexpr bool | has_non_null_guarantee = true |
Related Functions | |
(Note that these are not member functions.) | |
| template<class... Xs, class... Ys> | |
| bool | operator== (const typed_actor< Xs...> &x, const typed_actor< Ys...> &y) noexcept |
| template<class... Xs, class... Ys> | |
| bool | operator!= (const typed_actor< Xs...> &x, const typed_actor< Ys...> &y) noexcept |
| template<class... Xs, class... Ys> | |
| detail::mpi_sequencer< typed_actor, detail::type_list< Xs...>, Ys...>::type | operator* (typed_actor< Xs...> f, typed_actor< Ys...> g) |
Returns a new actor that implements the composition f.g(x) = f(g(x)). | |
Identifies a statically typed actor.
| Sigs | Signature of this actor as replies_to<...>::with<...> parameter pack. |
| using caf::typed_actor< Sigs >::behavior_type = typed_behavior<Sigs...> |
Identifies the behavior type actors of this kind use for their behavior stack.
| using caf::typed_actor< Sigs >::extend_with = typename detail::extend_with_helper<typed_actor, Ts...>::type |
Creates a new typed_actor type by extending this one with another typed_actor.
| bool caf::typed_actor< Sigs >::unsafe | ( | ) | const |
Queries whether this object was constructed using unsafe_actor_handle_init or is in moved-from state.
|
related |
|
related |
1.8.9.1