Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
nlohmann::adl_serializer< typename, typename > Struct Template Reference

default JSONSerializer template argument More...

#include <json.hpp>

Static Public Member Functions

template<typename BasicJsonType , typename ValueType >
static auto from_json (BasicJsonType &&j, ValueType &val) noexcept(noexcept(::nlohmann::from_json(std::forward< BasicJsonType >(j), val))) -> decltype(::nlohmann::from_json(std::forward< BasicJsonType >(j), val), void())
 convert a JSON value to any value type More...
 
template<typename BasicJsonType , typename ValueType >
static auto to_json (BasicJsonType &j, ValueType &&val) noexcept(noexcept(::nlohmann::to_json(j, std::forward< ValueType >(val)))) -> decltype(::nlohmann::to_json(j, std::forward< ValueType >(val)), void())
 convert any value type to a JSON value More...
 

Detailed Description

template<typename, typename>
struct nlohmann::adl_serializer< typename, typename >

default JSONSerializer template argument

This serializer ignores the template arguments and uses ADL (argument-dependent lookup) for serialization.

Definition at line 74 of file json.hpp.

Member Function Documentation

template<typename , typename >
template<typename BasicJsonType , typename ValueType >
static auto nlohmann::adl_serializer< typename, typename >::from_json ( BasicJsonType &&  j,
ValueType &  val 
) -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), val), void())
inlinestaticnoexcept

convert a JSON value to any value type

This function is usually called by the get() function of the basic_json class (either explicit or via conversion operators).

Parameters
[in]jJSON value to read from
[in,out]valvalue to write to

Definition at line 12304 of file json.hpp.

References nlohmann::detail::from_json().

12307  {
12308  ::nlohmann::from_json(std::forward<BasicJsonType>(j), val);
12309  }
void from_json(const BasicJsonType &j, std::unordered_map< Key, Value, Hash, KeyEqual, Allocator > &m)
Definition: json.hpp:1537
template<typename , typename >
template<typename BasicJsonType , typename ValueType >
static auto nlohmann::adl_serializer< typename, typename >::to_json ( BasicJsonType &  j,
ValueType &&  val 
) -> decltype(::nlohmann::to_json(j, std::forward<ValueType>(val)), void())
inlinestaticnoexcept

convert any value type to a JSON value

This function is usually called by the constructors of the basic_json class.

Parameters
[in,out]jJSON value to write to
[in]valvalue to read from

Definition at line 12321 of file json.hpp.

References NLOHMANN_BASIC_JSON_TPL_DECLARATION, and nlohmann::detail::to_json().

12324  {
12325  ::nlohmann::to_json(j, std::forward<ValueType>(val));
12326  }
void to_json(BasicJsonType &j, const std::tuple< Args... > &t)
Definition: json.hpp:2025

The documentation for this struct was generated from the following file: