Instrument Neutral Distributed Interface INDI 2.2.5
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 defines a string syntax for identifying a specific value within a JSON document. More...
struct  ordered_map
 a minimal map-like container that preserves insertion order More...
class  byte_container_with_subtype
 an internal type for a backed binary type More...
struct  json_sax
 SAX interface. More...
struct  string_t_helper
struct  string_t_helper< NLOHMANN_BASIC_JSON_TPL >

Typedefs

using json = basic_json<>
 default specialization
using ordered_json = basic_json<nlohmann::ordered_map>
 specialization that maintains the insertion order of object keys
using string_t = typename string_t_helper<RefStringType>::type
using mapped_type = T
using Container = std::vector<std::pair<const Key, T>, Allocator>
using iterator = typename Container::iterator
using const_iterator = typename Container::const_iterator
using size_type = typename Container::size_type
using value_type = typename Container::value_type
using key_compare = std::equal_to<Key>
template<typename InputIt>
using require_input_iter

Functions

 NLOHMANN_CAN_CALL_STD_FUNC_IMPL (begin)
 NLOHMANN_CAN_CALL_STD_FUNC_IMPL (end)
*brief create JSON pointer *sa reference_tokens end ()
*brief append another JSON pointer at the end of this JSON pointer *sa ptr reference_tokens begin ()
res pop_back ()
return reference_tokens back ()
 ordered_map (const Allocator &alloc) noexcept(noexcept(Container(alloc)))
template<class It>
 ordered_map (It first, It last, const Allocator &alloc=Allocator())
 ordered_map (std::initializer_list< value_type > init, const Allocator &alloc=Allocator())
std::pair< iterator, bool > emplace (const key_type &key, T &&t)
template<class KeyType, detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
std::pair< iterator, bool > emplace (KeyType &&key, T &&t)
T & operator[] (const key_type &key)
template<class KeyType, detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
T & operator[] (KeyType &&key)
template<class KeyType, detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
const T & operator[] (KeyType &&key) const
T & at (const key_type &key)
template<class KeyType, detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
T & at (KeyType &&key)
template<class KeyType, detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
const T & at (KeyType &&key) const
size_type erase (const key_type &key)
template<class KeyType, detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
size_type erase (KeyType &&key)
iterator erase (iterator pos)
iterator erase (iterator first, iterator last)
size_type count (const key_type &key) const
template<class KeyType, detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
size_type count (KeyType &&key) const
iterator find (const key_type &key)
template<class KeyType, detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
iterator find (KeyType &&key)
std::pair< iterator, bool > insert (value_type &&value)
std::pair< iterator, bool > insert (const value_type &value)
template<typename InputIt, typename = require_input_iter<InputIt>>
void insert (InputIt first, InputIt last)

Variables

*brief JSON Pointer defines a string syntax for identifying a specific value within a JSON document *sa https
*brief create JSON pointer *sa reference_tokens const string_t & a
*brief create JSON pointer *sa reference_tokens const string_t const string_t & b
return * this
*brief create a new JSON pointer by appending the right JSON pointer at the end of the left JSON pointer *sa const json_pointer & rhs
*brief create a new JSON pointer by appending the unescaped token at the end of the JSON pointer *sa string_t token
*brief create a new JSON pointer by appending the array index token at the end of the JSON pointer *sa std::size_t array_idx
json_pointer res = *this
*brief remove last reference token *sa JSON pointer has no parent
*brief remove last reference token *sa JSON pointer has no nullptr
* ordered_map
class class Allocator

Detailed Description

namespace for Niels Lohmann

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

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

Typedef Documentation

◆ const_iterator

using nlohmann::const_iterator = typename Container::const_iterator

Definition at line 18287 of file indijson.hpp.

◆ Container

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

Definition at line 18285 of file indijson.hpp.

◆ iterator

using nlohmann::iterator = typename Container::iterator

Definition at line 18286 of file indijson.hpp.

◆ json

default specialization

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

Definition at line 3196 of file indijson.hpp.

◆ key_compare

using nlohmann::key_compare = std::equal_to<Key>

Definition at line 18293 of file indijson.hpp.

◆ mapped_type

Definition at line 18284 of file indijson.hpp.

◆ ordered_json

specialization that maintains the insertion order of object keys

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

Definition at line 3205 of file indijson.hpp.

◆ require_input_iter

template<typename InputIt>
using nlohmann::require_input_iter
Initial value:
typename std::enable_if<std::is_convertible<typename std::iterator_traits<InputIt>::iterator_category,
std::input_iterator_tag>::value>::type
uint16_t type
Definition pwc-ioctl.h:0

Definition at line 18595 of file indijson.hpp.

◆ size_type

using nlohmann::size_type = typename Container::size_type

Definition at line 18288 of file indijson.hpp.

◆ string_t

*brief create JSON pointer *sa reference_tokens nlohmann::string_t = typename string_t_helper<RefStringType>::type

Definition at line 13265 of file indijson.hpp.

◆ value_type

using nlohmann::value_type = typename Container::value_type

Definition at line 18289 of file indijson.hpp.

Function Documentation

◆ at() [1/3]

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

Definition at line 18358 of file indijson.hpp.

◆ at() [2/3]

template<class KeyType, detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
T & nlohmann::at ( KeyType && key)

Definition at line 18373 of file indijson.hpp.

◆ at() [3/3]

template<class KeyType, detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
const T & nlohmann::at ( KeyType && key) const

Definition at line 18401 of file indijson.hpp.

◆ back()

return reference_tokens nlohmann::back ( )

◆ begin()

*brief append another JSON pointer at the end of this JSON pointer *sa ptr reference_tokens nlohmann::begin ( )

◆ count() [1/2]

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

Definition at line 18512 of file indijson.hpp.

◆ count() [2/2]

template<class KeyType, detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
size_type nlohmann::count ( KeyType && key) const

Definition at line 18526 of file indijson.hpp.

◆ emplace() [1/2]

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

Definition at line 18306 of file indijson.hpp.

◆ emplace() [2/2]

template<class KeyType, detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
std::pair< iterator, bool > nlohmann::emplace ( KeyType && key,
T && t )

Definition at line 18321 of file indijson.hpp.

◆ end()

*brief append another JSON pointer at the end of this JSON pointer *sa ptr reference_tokens ptr reference_tokens nlohmann::end ( )

◆ erase() [1/4]

size_type nlohmann::erase ( const key_type & key)

Definition at line 18414 of file indijson.hpp.

◆ erase() [2/4]

iterator nlohmann::erase ( iterator first,
iterator last )

Definition at line 18459 of file indijson.hpp.

◆ erase() [3/4]

iterator nlohmann::erase ( iterator pos)

Definition at line 18454 of file indijson.hpp.

◆ erase() [4/4]

template<class KeyType, detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
size_type nlohmann::erase ( KeyType && key)

Definition at line 18435 of file indijson.hpp.

◆ find() [1/2]

const_iterator nlohmann::find ( const key_type & key)

Definition at line 18538 of file indijson.hpp.

◆ find() [2/2]

template<class KeyType, detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
iterator nlohmann::find ( KeyType && key)

Definition at line 18552 of file indijson.hpp.

◆ insert() [1/3]

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

Definition at line 18581 of file indijson.hpp.

◆ insert() [2/3]

template<typename InputIt, typename = require_input_iter<InputIt>>
void nlohmann::insert ( InputIt first,
InputIt last )

Definition at line 18599 of file indijson.hpp.

◆ insert() [3/3]

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

Definition at line 18576 of file indijson.hpp.

◆ NLOHMANN_CAN_CALL_STD_FUNC_IMPL() [1/2]

nlohmann::NLOHMANN_CAN_CALL_STD_FUNC_IMPL ( begin )

◆ NLOHMANN_CAN_CALL_STD_FUNC_IMPL() [2/2]

nlohmann::NLOHMANN_CAN_CALL_STD_FUNC_IMPL ( end )

◆ operator[]() [1/3]

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

Definition at line 18334 of file indijson.hpp.

◆ operator[]() [2/3]

template<class KeyType, detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
T & nlohmann::operator[] ( KeyType && key)

Definition at line 18341 of file indijson.hpp.

◆ operator[]() [3/3]

template<class KeyType, detail::enable_if_t< detail::is_usable_as_key_type< key_compare, key_type, KeyType >::value, int > = 0>
const T & nlohmann::operator[] ( KeyType && key) const

Definition at line 18353 of file indijson.hpp.

◆ ordered_map() [1/3]

nlohmann::ordered_map ( const Allocator & alloc)
explicitnoexcept

Definition at line 18299 of file indijson.hpp.

◆ ordered_map() [2/3]

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

Definition at line 18301 of file indijson.hpp.

◆ ordered_map() [3/3]

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

Definition at line 18303 of file indijson.hpp.

◆ pop_back()

reference_tokens nlohmann::pop_back ( )

Variable Documentation

◆ a

*brief create JSON pointer *sa reference_tokens const string_t& nlohmann::a

Definition at line 13279 of file indijson.hpp.

◆ Allocator

class class nlohmann::Allocator
Initial value:
= std::allocator<std::pair<const Key, T>>>
struct ordered_map : std::vector<std::pair<const Key, T>
a minimal map-like container that preserves insertion order

Definition at line 18279 of file indijson.hpp.

◆ array_idx

* brief create a new JSON pointer by appending the array index token at the end of the JSON pointer* sa std::size_t nlohmann::array_idx
Initial value:
{
return json_pointer(lhs) /= array_idx
friend class json_pointer
*brief create a new JSON pointer by appending the array index token at the end of the JSON pointer *sa std::size_t array_idx

Definition at line 13334 of file indijson.hpp.

◆ b

*brief create JSON pointer *sa reference_tokens const string_t const string_t& nlohmann::b
Initial value:
{
StringType escape(StringType s)
string escaping as described in RFC 6901 (Sect. 4)
OutStringType concat(Args &&... args)
*brief create JSON pointer *sa reference_tokens const string_t & a
*brief create JSON pointer *sa reference_tokens const string_t const string_t & b

Definition at line 13279 of file indijson.hpp.

◆ https

*brief user defined to_string function for JSON values *sa nlohmann::https

Definition at line 13240 of file indijson.hpp.

◆ nullptr

JSON_PRIVATE_UNLESS_TESTED JSON pointer has no nlohmann::nullptr

Definition at line 13359 of file indijson.hpp.

◆ ordered_map

nlohmann::ordered_map
noexcept

Definition at line 18277 of file indijson.hpp.

◆ parent

JSON_PRIVATE_UNLESS_TESTED JSON pointer has no nlohmann::parent

Definition at line 13359 of file indijson.hpp.

◆ res

return nlohmann::res = *this

Definition at line 13348 of file indijson.hpp.

◆ rhs

* brief create a new JSON pointer by appending the right JSON pointer at the end of the left JSON pointer* sa const json_pointer& nlohmann::rhs
Initial value:
{
return json_pointer(lhs) /= rhs
*brief create a new JSON pointer by appending the right JSON pointer at the end of the left JSON pointer *sa const json_pointer & rhs

Definition at line 13320 of file indijson.hpp.

◆ this

return * nlohmann::this

Definition at line 13299 of file indijson.hpp.

◆ token

* brief create a new JSON pointer by appending the unescaped token at the end of the JSON pointer* sa string_t nlohmann::token
Initial value:
{
return json_pointer(lhs) /= std::move(token)
*brief create a new JSON pointer by appending the unescaped token at the end of the JSON pointer *sa string_t token

Definition at line 13327 of file indijson.hpp.