Identifies a statically typed actor.
More...
#include <typed_actor.hpp>
Inherits comparable< typed_actor< Sigs... > >, comparable< typed_actor< Sigs... >, actor >, comparable< typed_actor< Sigs... >, actor_addr >, and comparable< typed_actor< Sigs... >, strong_actor_ptr >.
|
| 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 T > |
| typed_actor (T *ptr, typename std::enable_if< std::is_base_of< statically_typed_actor_base, T >::value >::type *=0) |
|
template<class... Ts> |
typed_actor & | operator= (const typed_actor< Ts... > &other) |
|
typed_actor & | operator= (std::nullptr_t) |
|
| typed_actor (const unsafe_actor_handle_init_t &) CAF_DEPRECATED |
|
| operator bool () const |
| Queries whether this actor handle is valid.
|
|
bool | operator! () const |
| Queries whether this actor handle is invalid.
|
|
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 .
|
|
bool | unsafe () const CAF_DEPRECATED |
| Queries whether this object was constructed using unsafe_actor_handle_init or is in moved-from state. More...
|
|
|
static constexpr bool | has_weak_ptr_semantics = false |
|
|
class | local_actor |
|
template<class > |
class | data_processor |
|
template<class > |
class | detail::type_erased_value_impl |
|
template<class... > |
class | typed_actor |
|
template<class , class , int > |
class | actor_cast_access |
|
|
(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> |
bool | operator== (const typed_actor< Xs... > &x, std::nullptr_t) noexcept |
|
template<class... Xs> |
bool | operator== (std::nullptr_t, const typed_actor< Xs... > &x) noexcept |
|
template<class... Xs> |
bool | operator!= (const typed_actor< Xs... > &x, std::nullptr_t) noexcept |
|
template<class... Xs> |
bool | operator!= (std::nullptr_t, const typed_actor< Xs... > &x) noexcept |
|
template<class... Xs, class... Ys> |
composed_type_t< detail::type_list< Xs... >, detail::type_list< Ys... > > | operator* (typed_actor< Xs... > f, typed_actor< Ys... > g) |
| Returns a new actor that implements the composition f.g(x) = f(g(x)) .
|
|
template<class... Sigs>
class caf::typed_actor< Sigs >
Identifies a statically typed actor.
- Template Parameters
-
Sigs | Signature of this actor as replies_to<...>::with<...> parameter pack. |
- Examples:
- dining_philosophers.cpp.
◆ behavior_type
Identifies the behavior type actors of this kind use for their behavior stack.
◆ extend_with
template<class... Sigs>
template<class... Ts>
◆ unsafe()
Queries whether this object was constructed using unsafe_actor_handle_init
or is in moved-from state.
◆ operator!=() [1/3]
template<class... Xs, class... Ys>
◆ operator!=() [2/3]
◆ operator!=() [3/3]
◆ operator==() [1/3]
template<class... Xs, class... Ys>
◆ operator==() [2/3]
template<class... Xs>
bool operator== |
( |
const typed_actor< Xs... > & |
x, |
|
|
std::nullptr_t |
|
|
) |
| |
|
related |
◆ operator==() [3/3]
template<class... Xs>
bool operator== |
( |
std::nullptr_t |
, |
|
|
const typed_actor< Xs... > & |
x |
|
) |
| |
|
related |
The documentation for this class was generated from the following files:
- libcaf_core/caf/fwd.hpp
- libcaf_core/caf/typed_actor.hpp