libMVRgdtf e5d999f
A library for GDTF and MVR
Loading...
Searching...
No Matches
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...
class  basic_json
 a class to store JSON values More...
class  json_pointer
 JSON Pointer. More...
struct  ordered_map
class  byte_container_with_subtype
 an internal type for a backed binary type More...
struct  json_sax
 SAX interface. More...

Typedefs

using json = basic_json<>
 default JSON class
using ordered_json = basic_json<nlohmann::ordered_map>
 ordered JSON class
using mapped_type = T
using Container = std::vector<std::pair<const Key, T>, Allocator>

Functions

 ordered_map (const Allocator &alloc=Allocator())
template<class It>
 ordered_map (It first, It last, const Allocator &alloc=Allocator())
 ordered_map (std::initializer_list< T > init, const Allocator &alloc=Allocator())
std::pair< iterator, bool > emplace (const key_type &key, T &&t)
T & operator[] (const Key &key)
T & at (const Key &key)
size_type erase (const Key &key)
iterator erase (iterator pos)
size_type count (const Key &key) const
iterator find (const Key &key)
std::pair< iterator, bool > insert (value_type &&value)
std::pair< iterator, bool > insert (const value_type &value)
NLOHMANN_BASIC_JSON_TPL_DECLARATION std::string to_string (const NLOHMANN_BASIC_JSON_TPL &j)
 user-defined to_string function for JSON values

Variables

ordered_map
class class Allocator

Detailed Description

namespace for Niels Lohmann

namespace to hold default to_json function

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

Typedef Documentation

◆ Container

using nlohmann::Container = std::vector<std::pair<const Key, T>, Allocator>

◆ 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

◆ mapped_type

◆ ordered_json

ordered JSON class

This type preserves the insertion order of object keys.

Since
version 3.9.0

Function Documentation

◆ at()

const T & nlohmann::at ( const Key & key)

◆ count()

size_type nlohmann::count ( const Key & key) const

◆ emplace()

std::pair< iterator, bool > nlohmann::emplace ( const key_type & key,
T && t )

◆ erase() [1/2]

size_type nlohmann::erase ( const Key & key)

◆ erase() [2/2]

iterator nlohmann::erase ( iterator pos)

◆ find()

const_iterator nlohmann::find ( const Key & key)

◆ insert() [1/2]

std::pair< iterator, bool > nlohmann::insert ( const value_type & value)

◆ insert() [2/2]

std::pair< iterator, bool > nlohmann::insert ( value_type && value)

◆ operator[]()

const T & nlohmann::operator[] ( const Key & key)

◆ ordered_map() [1/3]

nlohmann::ordered_map ( const Allocator & alloc = Allocator())

◆ ordered_map() [2/3]

template<class It>
nlohmann::ordered_map ( It first,
It last,
const Allocator & alloc = Allocator() )

◆ ordered_map() [3/3]

nlohmann::ordered_map ( std::initializer_list< T > init,
const Allocator & alloc = Allocator() )

◆ 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

Variable Documentation

◆ Allocator

class class nlohmann::Allocator
Initial value:
= std::allocator<std::pair<const Key, T>>>
struct ordered_map : std::vector<std::pair<const Key, T>
Definition json.h:2936

◆ ordered_map

* nlohmann::ordered_map