A function view for an actor hides any messaging from the caller.
More...
#include <function_view.hpp>
|
| function_view (duration rel_timeout=infinite) |
|
| function_view (type impl, duration rel_timeout=infinite) |
|
| function_view (function_view &&x) |
|
function_view & | operator= (function_view &&x) |
|
template<class... Ts, class R = function_view_flattened_result_t< typename response_type< typename type::signatures, detail::implicit_conversions_t< typename std::decay<Ts>::type >... >::tuple_type>> |
expected< R > | operator() (Ts &&... xs) |
| Sends a request message to the assigned actor and returns the result.
|
|
void | assign (type x) |
|
void | reset () |
|
| operator bool () const |
| Checks whether this function view has an actor assigned to it.
|
|
type | handle () const |
| Returns the associated actor handle.
|
|
template<class Actor>
class caf::function_view< Actor >
A function view for an actor hides any messaging from the caller.
Internally, a function view uses a scoped_actor
and uses blocking send and receive operations.
- Attention
- This feature is experimental.
◆ make_function_view()
Creates a new function view for x
.
- Attention
- This feature is experimental.
◆ operator!=() [1/2]
template<class T >
bool operator!= |
( |
const function_view< T > & |
x, |
|
|
std::nullptr_t |
y |
|
) |
| |
|
related |
◆ operator!=() [2/2]
template<class T >
bool operator!= |
( |
std::nullptr_t |
x, |
|
|
const function_view< T > & |
y |
|
) |
| |
|
related |
◆ operator==() [1/2]
◆ operator==() [2/2]
template<class T >
bool operator== |
( |
std::nullptr_t |
x, |
|
|
const function_view< T > & |
y |
|
) |
| |
|
related |
The documentation for this class was generated from the following file:
- /build/actor-framework-iVGYZC/actor-framework-0.16.3/libcaf_core/caf/function_view.hpp