C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::detail::invoke_result_visitor Class Referenceabstract

Inspects the result of message handlers and triggers type-depended actions such as generating result messages. More...

#include <invoke_result_visitor.hpp>

Inherited by caf::detail::default_invoke_result_visitor< Self >.

Public Member Functions

virtual void operator() (error &)=0
 Called if the message handler returned an error.
 
virtual void operator() (message &)=0
 Called if the message handler returned any "ordinary" value.
 
template<class... Ts>
void operator() (Ts &... xs)
 Wraps arbitrary values into a message and calls the visitor recursively.
 
void operator() (const unit_t &)
 Called if the message handler returns void or unit_t.
 
void operator() (unit_t &x)
 Disambiguates the variadic operator<Ts...>().
 
template<class... Ts>
void operator() (result< Ts... > &res)
 Dispatches on the runtime-type of x.
 
void operator() (response_promise &)
 
template<class... Ts>
void operator() (typed_response_promise< Ts... > &)
 
template<class... Ts>
void operator() (delegated< Ts... > &)
 

Detailed Description

Inspects the result of message handlers and triggers type-depended actions such as generating result messages.


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