|
template<typename Signature = use_default, typename String , typename Callable DAW_JSON_ENABLEIF> |
constexpr auto | json_apply (String &&json_doc, Callable &&callable) |
| Parse to parameters specified in signature and pass them to Callable for evaluation. This is similar to std::apply but using JSON documents instead of tuples. More...
|
|
template<typename Signature = use_default, typename String , auto... PolicyFlags, typename Callable DAW_JSON_ENABLEIF> |
constexpr auto | json_apply (String &&json_doc, daw::json::options::parse_flags_t< PolicyFlags... > flags, Callable &&callable) |
| Parse to parameters specified in signature and pass them to Callable for evaluation. This is similar to std::apply but using JSON documents instead of tuples. More...
|
|
template<typename Signature = use_default, typename String , typename Callable DAW_JSON_ENABLEIF> |
constexpr auto | json_apply (String &&json_doc, std::string_view json_path, Callable &&callable) |
| Parse to parameters specified in signature and pass them to Callable for evaluation. This is similar to std::apply but using JSON documents instead of tuples. More...
|
|
template<typename Signature = use_default, typename String , auto... PolicyFlags, typename Callable DAW_JSON_ENABLEIF> |
constexpr auto | json_apply (String &&json_doc, std::string_view json_path, daw::json::options::parse_flags_t< PolicyFlags... > flags, Callable &&callable) |
| Parse to parameters specified in signature and pass them to Callable for evaluation. This is similar to std::apply but using JSON documents instead of tuples. More...
|
|
template<typename Signature = use_default, typename String , typename Callable DAW_JSON_ENABLEIF>
constexpr auto daw::json::anonymous_namespace{daw_json_apply.h}::json_apply |
( |
String && |
json_doc, |
|
|
Callable && |
callable |
|
) |
| |
|
constexpr |
Parse to parameters specified in signature and pass them to Callable for evaluation. This is similar to std::apply but using JSON documents instead of tuples.
- Template Parameters
-
Signature | The signature of the Callable. Will try to auto deduce if not specified. Does not work when there are overloads(e.g. auto params/template params/overloaded call operator or functions) |
String | Type of json document |
Callable | A callable to pass the parsed json document to |
- Parameters
-
json_doc | The json document with serialized data to parse |
callable | The callable used to evaluate the parsed values. |
- Returns
- The result of calling Callable
Definition at line 68 of file daw_json_apply.h.
template<typename Signature = use_default, typename String , auto... PolicyFlags, typename Callable DAW_JSON_ENABLEIF>
constexpr auto daw::json::anonymous_namespace{daw_json_apply.h}::json_apply |
( |
String && |
json_doc, |
|
|
daw::json::options::parse_flags_t< PolicyFlags... > |
flags, |
|
|
Callable && |
callable |
|
) |
| |
|
constexpr |
Parse to parameters specified in signature and pass them to Callable for evaluation. This is similar to std::apply but using JSON documents instead of tuples.
- Template Parameters
-
Signature | The signature of the Callable. Will try to auto deduce if not specified. Does not work when there are overloads(e.g. auto params/template params/overloaded call operator or functions) |
String | Type of json document |
Callable | A callable to pass the parsed json document to |
PolicyFlags | Parser Policy flags. See parser_policies.md |
- Parameters
-
json_doc | The json document with serialized data to parse |
flags | Parsing policy flags to change parser behaviour |
callable | The callable used to evaluate the parsed values. |
- Returns
- The result of calling Callable
Definition at line 140 of file daw_json_apply.h.
template<typename Signature = use_default, typename String , typename Callable DAW_JSON_ENABLEIF>
constexpr auto daw::json::anonymous_namespace{daw_json_apply.h}::json_apply |
( |
String && |
json_doc, |
|
|
std::string_view |
json_path, |
|
|
Callable && |
callable |
|
) |
| |
|
constexpr |
Parse to parameters specified in signature and pass them to Callable for evaluation. This is similar to std::apply but using JSON documents instead of tuples.
- Template Parameters
-
Signature | The signature of the Callable. Will try to auto deduce if not specified. Does not work when there are overloads(e.g. auto params/template params/overloaded call operator or functions) |
String | Type of json document |
Callable | A callable to pass the parsed json document to |
- Parameters
-
json_doc | The json document with serialized data to parse |
json_path | The JSON Path to the element in the document to parse |
callable | The callable used to evaluate the parsed values. |
- Returns
- The result of calling Callable
Definition at line 89 of file daw_json_apply.h.
template<typename Signature = use_default, typename String , auto... PolicyFlags, typename Callable DAW_JSON_ENABLEIF>
constexpr auto daw::json::anonymous_namespace{daw_json_apply.h}::json_apply |
( |
String && |
json_doc, |
|
|
std::string_view |
json_path, |
|
|
daw::json::options::parse_flags_t< PolicyFlags... > |
flags, |
|
|
Callable && |
callable |
|
) |
| |
|
constexpr |
Parse to parameters specified in signature and pass them to Callable for evaluation. This is similar to std::apply but using JSON documents instead of tuples.
- Template Parameters
-
Signature | The signature of the Callable. Will try to auto deduce if not specified. Does not work when there are overloads(e.g. auto params/template params/overloaded call operator or functions) |
String | Type of json document |
Callable | A callable to pass the parsed json document to |
PolicyFlags | Parser Policy flags. See parser_policies.md |
- Parameters
-
json_doc | The json document with serialized data to parse |
json_path | The JSON Path to the element in the document to parse |
flags | Parsing policy flags to change parser behaviour |
callable | The callable used to evaluate the parsed values. |
- Returns
- The result of calling Callable
Definition at line 114 of file daw_json_apply.h.