Feel++ 0.111.0-preview.14
Finite Element Embedded Library in C++
nlohmann Namespace Reference

namespace for Niels Lohmann More...

Namespaces

namespace  detail
 detail namespace with internal helper functions
 

Classes

struct  adl_serializer
 default JSONSerializer template argument More...
 
struct  adl_serializer< Feel::fs::path >
 
struct  adl_serializer< py::bool_ >
 
struct  adl_serializer< py::detail::item_accessor >
 
struct  adl_serializer< py::detail::list_accessor >
 
struct  adl_serializer< py::detail::obj_attr_accessor >
 
struct  adl_serializer< py::detail::sequence_accessor >
 
struct  adl_serializer< py::detail::str_attr_accessor >
 
struct  adl_serializer< py::detail::tuple_accessor >
 
struct  adl_serializer< py::dict >
 
struct  adl_serializer< py::float_ >
 
struct  adl_serializer< py::handle >
 
struct  adl_serializer< py::int_ >
 
struct  adl_serializer< py::list >
 
struct  adl_serializer< py::object >
 
struct  adl_serializer< py::str >
 
struct  adl_serializer< py::tuple >
 
class  basic_json
 a class to store JSON values More...
 
class  byte_container_with_subtype
 an internal type for a backed binary type More...
 
class  json_pointer
 JSON Pointer defines a string syntax for identifying a specific value within a JSON document. More...
 
struct  json_sax
 SAX interface. More...
 
struct  ordered_map
 a minimal map-like container that preserves insertion order More...
 
struct  would_call_std_begin
 
struct  would_call_std_end
 

Typedefs

using json = basic_json<>
 default specialization More...
 
using ordered_json = basic_json< nlohmann::ordered_map >
 specialization that maintains the insertion order of object keys More...
 

Functions

template<class T >
void from_json (const nlohmann::json &j, std::optional< T > &v)
 
template<class T >
void to_json (nlohmann::json &j, const std::optional< T > &v)
 
template<template< typename, typename, typename... > class ObjectType, template< typename, typename... > class ArrayType, class StringType , class BooleanType , class NumberIntegerType , class NumberUnsignedType , class NumberFloatType , template< typename > class AllocatorType, template< typename, typename=void > class JSONSerializer, class BinaryType >
std::string to_string (const basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType > &j)
 user-defined to_string function for JSON values More...
 

Detailed Description

namespace for Niels Lohmann

namespace to hold default to_json function to see why this is required: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4381.html

See also
https://github.com/nlohmann
Since
version 1.0.0

Typedef Documentation

◆ json

using nlohmann::json = typedef basic_json<>

default specialization

See also
https://json.nlohmann.me/api/json/

◆ ordered_json

specialization that maintains the insertion order of object keys

See also
https://json.nlohmann.me/api/ordered_json/

Function Documentation

◆ to_string()

template<template< typename, typename, typename... > class ObjectType, template< typename, typename... > class ArrayType, class StringType , class BooleanType , class NumberIntegerType , class NumberUnsignedType , class NumberFloatType , template< typename > class AllocatorType, template< typename, typename=void > class JSONSerializer, class BinaryType >
std::string nlohmann::to_string ( const basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType > &  j)

user-defined to_string function for JSON values

See also
https://json.nlohmann.me/api/basic_json/to_string/