|
Anklang-0.3.0.dev551+gad1415e2 anklang-0.3.0.dev551+gad1415e2
ASE — Anklang Sound Engine (C++)
« « « Anklang Documentation |
Template class providing conversion helpers for JsonValue to indexed C++ function argument. More...
#include "jsonipc.hh"
Classes | |
| struct | TupleElement |
| struct | TupleElement< INDEX, false > |
Public Types | |
| using | FuncType = typename std::decay< F >::type |
| using | Arguments = typename FunctionTraits< FuncType >::Arguments |
| template<size_t INDEX> | |
| using | ArgType = typename TupleElement< HAS_THIS+INDEX,(INDEX< N_ARGS)>::Type |
| template<size_t INDEX> | |
| using | ConvertType = decltype(Convert< ArgType< INDEX > >::from_json(std::declval< JsonValue >())) |
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.
Definition at line 505 of file jsonipc.hh.
| struct Jsonipc::CallTraits::TupleElement |
Definition at line 512 of file jsonipc.hh.
| Class Members | ||
|---|---|---|
| typedef typename type | Type | |
| struct Jsonipc::CallTraits::TupleElement< INDEX, false > |
Definition at line 513 of file jsonipc.hh.
| Class Members | ||
|---|---|---|
| typedef void | Type | |
| using Jsonipc::CallTraits< F >::ArgType = typename TupleElement<HAS_THIS + INDEX, (INDEX < N_ARGS)>::Type |
Definition at line 514 of file jsonipc.hh.
| using Jsonipc::CallTraits< F >::Arguments = typename FunctionTraits<FuncType>::Arguments |
Definition at line 507 of file jsonipc.hh.
| using Jsonipc::CallTraits< F >::ConvertType = decltype (Convert<ArgType<INDEX> >::from_json (std::declval<JsonValue>())) |
Definition at line 515 of file jsonipc.hh.
| using Jsonipc::CallTraits< F >::FuncType = typename std::decay<F>::type |
Definition at line 506 of file jsonipc.hh.
|
static |
Definition at line 518 of file jsonipc.hh.
|
static |
Definition at line 523 of file jsonipc.hh.
|
staticconstexpr |
Definition at line 508 of file jsonipc.hh.
|
staticconstexpr |
Definition at line 509 of file jsonipc.hh.