A Discrete-Event Network Simulator
API
nlohmann Namespace Reference

namespace for Niels Lohmann More...

Namespaces

 anonymous_namespace{json.h}
 namespace to hold default from_json function to see why this is required: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4381.html
 
 detail
 detail namespace with internal helper functions
 

Classes

struct  adl_serializer
 default JSONSerializer template argument More...
 
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. More...
 
struct  json_sax
 SAX interface. More...
 
struct  ordered_map
 ordered_map: a minimal map-like container that preserves insertion order for use within nlohmann::basic_json<ordered_map> More...
 

Typedefs

using json = basic_json<>
 default JSON class More...
 
using ordered_json = basic_json< nlohmann::ordered_map >
 ordered JSON class More...
 

Functions

NLOHMANN_BASIC_JSON_TPL_DECLARATION std::string to_string (const NLOHMANN_BASIC_JSON_TPL &j)
 user-defined to_string function for JSON values More...
 

Detailed Description

namespace for Niels Lohmann

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

Typedef Documentation

◆ json

using nlohmann::json = typedef basic_json<>

default JSON class

This type is the default specialization of the basic_json class which uses the standard template types.

Since
version 1.0.0

Definition at line 3000 of file json.h.

◆ ordered_json

ordered JSON class

This type preserves the insertion order of object keys.

Since
version 3.9.0

Definition at line 3012 of file json.h.

Function Documentation

◆ to_string()

NLOHMANN_BASIC_JSON_TPL_DECLARATION std::string nlohmann::to_string ( const NLOHMANN_BASIC_JSON_TPL j)

user-defined to_string function for JSON values

This function implements a user-defined to_string for JSON objects.

Parameters
[in]ja JSON object
Returns
a std::string object

Definition at line 25255 of file json.h.

Referenced by nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::at(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_array_size(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_entry_header_size(), IdealRateManagerChannelWidthTest::ChangeChannelWidth(), ns3::QKDKeyManagerSystemApplication::Check014GetKeyRequest(), ns3::RadioBearerStatsConnector::ConnectTracesDrbEnb(), ns3::RadioBearerStatsConnector::ConnectTracesDrbUe(), nlohmann::detail::parse_error::create(), ns3::HePhy::CreateHeMcs(), ns3::HtPhy::CreateHtMcs(), ns3::HTTPMessage::CreateRequest(), ns3::HttpHeader::CreateRequest(), ns3::HttpHeader::CreateResponse(), ns3::HTTPMessage::CreateResponse(), ns3::VhtPhy::CreateVhtMcs(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::diff(), TcFlowControlTestCase::DoRun(), WifiPrimaryChannelsTest::DoRun(), WifiPrimaryChannelsTest::DoSetup(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::erase(), nlohmann::json_pointer< BasicJsonType >::flatten(), nlohmann::detail::serializer< BasicJsonType >::for(), nlohmann::detail::binary_reader< BasicJsonType, InputAdapterType, SAX >::get_bson_binary(), nlohmann::detail::binary_reader< BasicJsonType, InputAdapterType, SAX >::get_bson_string(), nlohmann::json_pointer< BasicJsonType >::get_checked(), nlohmann::json_pointer< BasicJsonType >::get_unchecked(), ns3::QKDApp004::GetKeyFromKMS(), ns3::QKDApp014::GetKeysFromKMS(), nlohmann::detail::int_to_string(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::meta(), nlohmann::detail::exception::name(), ns3::QKDApp004::OpenConnect(), nlohmann::json_pointer< BasicJsonType >::operator/=(), nlohmann::detail::parse_error::position_string(), http::Request::send(), ns3::QKDApp004::SendKsidRequest(), ns3::QKDApp004::SendPacket(), nlohmann::detail::json_sax_dom_parser< BasicJsonType >::start_array(), nlohmann::detail::json_sax_dom_callback_parser< BasicJsonType >::start_array(), nlohmann::detail::json_sax_dom_parser< BasicJsonType >::start_object(), nlohmann::detail::json_sax_dom_callback_parser< BasicJsonType >::start_object(), ns3::RadioBearerStatsConnector::StoreUeManagerPath(), TraceCwnd(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_array(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_unsigned().

+ Here is the caller graph for this function: