#include "jsonipc.hh"
Classes | |
struct | TupleElement |
struct | TupleElement< INDEX, false > |
Public Types | |
template<size_t INDEX> | |
using | ArgType = typename TupleElement< HAS_THIS+INDEX,(INDEX< N_ARGS)>::Type |
using | Arguments = typename FunctionTraits< FuncType >::Arguments |
template<size_t INDEX> | |
using | ConvertType = decltype(Convert< ArgType< INDEX > >::from_json(std::declval< JsonValue >())) |
using | FuncType = typename std::decay< F >::type |
Static Public Member Functions | |
template<size_t INDEX> | |
static ConvertType< INDEX > | arg_from_json (const CallbackInfo &args) |
template<typename T , size_t ... INDICES> | |
static FunctionTraits< F >::ReturnType | call_unpacked (T &obj, const F &func, const CallbackInfo &args, std::index_sequence< INDICES... >) |
Static Public Attributes | |
static constexpr const bool | HAS_THIS |
static constexpr const size_t | N_ARGS |
Template class providing conversion helpers for JsonValue to indexed C++ function argument.
using FuncType = typename std::decay<F>::type |
using Arguments = typename FunctionTraits<FuncType>::Arguments |
using ArgType = typename TupleElement<HAS_THIS + INDEX, (INDEX < N_ARGS)>::Type |
using ConvertType = decltype (Convert<ArgType<INDEX> >::from_json (std::declval<JsonValue>())) |
|
static |
|
static |
|
staticconstexpr |
|
staticconstexpr |