| CppWAMP
    C++11 client library for the WAMP protocol | 
Wrapper around a call slot which automatically unpacks positional payload arguments. More...
#include <cppwamp/unpacker.hpp>
| Public Types | |
| using | Slot = TSlot | 
| The function type to be wrapped. | |
| Public Member Functions | |
| InvocationUnpacker (Slot slot) | |
| Constructor taking a callable target. | |
| Outcome | operator() (Invocation inv) const | 
| Dispatches the stored call slot.  More... | |
| Related Functions | |
| (Note that these are not member functions.) | |
| template<typename... TArgs, typename TSlot > | |
| InvocationUnpacker< DecayedSlot< TSlot >, TArgs... > | unpackedRpc (TSlot &&slot) | 
Wrapper around a call slot which automatically unpacks positional payload arguments.
The wamp::unpackedRpc convenience function should be used to construct instances of InvocationUnpacker.
| TSlot | Function type to be wrapped. | 
| TArgs | List of static types the call slot expects following the Invocation parameter. | 
| Outcome wamp::InvocationUnpacker< S, A >::operator() | ( | Invocation | inv | ) | const | 
Dispatches the stored call slot.
The inv.args() positional arguments will be unpacked and passed to the stored call slot as additional parameters. 
| 
 | related | 
Converts an unpacked call slot into a regular slot than can be passed to Session::enroll.
| TArgs | List of static types the call slot expects following the Invocation parameter. | 
| TSlot | (deduced) Function type to be converted. |