A function view for an actor hides any messaging from the caller.
More...
#include <function_view.hpp>
|
|
| function_view (const type &impl) |
| |
|
| function_view (function_view &&x) |
| |
|
function_view & | operator= (function_view &&x) |
| |
| template<class... Ts, class R = typename function_view_flattened_result< typename detail::deduce_output_type< type, detail::type_list< typename detail::implicit_conversions< typename std::decay<Ts>::type >::type...> >::tuple_type >::type> |
| R | operator() (Ts &&...xs) |
| | Sends a request message to the assigned actor and returns the result. More...
|
| |
|
void | assign (type x) |
| |
|
| operator bool () const |
| | Checks whether this function view has an actor assigned to it.
|
| |
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.
template<class Actor >
template<class... Ts, class R = typename function_view_flattened_result< typename detail::deduce_output_type< type, detail::type_list< typename detail::implicit_conversions< typename std::decay<Ts>::type >::type...> >::tuple_type >::type>
Sends a request message to the assigned actor and returns the result.
- Exceptions
-
| std::bad_function_call | if no actor is assigned to view |
| actor_exited | if the requests resulted in an error |
template<class T >
| bool operator!= |
( |
const function_view< T > & |
x, |
|
|
std::nullptr_t |
y |
|
) |
| |
|
related |
template<class T >
| bool operator!= |
( |
std::nullptr_t |
x, |
|
|
const function_view< T > & |
y |
|
) |
| |
|
related |
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:
- libcaf_core/caf/function_view.hpp