BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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 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...

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 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
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 ()
*brief remove last reference token *sa JSON pointer has no BasicJsonType ()))
return reference_tokens back ()
static BasicJsonType::size_type array_index (const std::string &s)
BasicJsonType & get_and_create (BasicJsonType &j) const
 create and return a reference to the pointed to value
BasicJsonType & get_unchecked (BasicJsonType *ptr) const
 return a reference to the pointed to value
BasicJsonType & get_checked (BasicJsonType *ptr) const
const BasicJsonType & get_unchecked (const BasicJsonType *ptr) const
 return a const reference to the pointed to value
const BasicJsonType & get_checked (const BasicJsonType *ptr) const
bool contains (const BasicJsonType *ptr) const
static std::vector< std::string > split (const std::string &reference_string)
 split the string input to reference tokens
static void flatten (const std::string &reference_string, const BasicJsonType &value, BasicJsonType &result)
static BasicJsonType unflatten (const BasicJsonType &value)
bool operator== (json_pointer const &lhs, json_pointer const &rhs) noexcept
 compares two JSON pointers for equality
bool operator!= (json_pointer const &lhs, json_pointer const &rhs) noexcept
 compares two JSON pointers for inequality
 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)
iterator erase (iterator first, iterator last)
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)
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 std::string & a
*brief create JSON pointer *sa reference_tokens const std::string const std::string & b { return a + "/" + detail::escape(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 { return json_pointer(lhs) /= rhs
*brief create a new JSON pointer by appending the unescaped token at the end of the JSON pointer *sa std::string 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
JSON_PRIVATE_UNLESS_TESTED __pad0__
json_pointer result = *this
result reference_tokens = {reference_tokens[0]}
* ordered_map
class class Allocator

Detailed Description

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

◆ const_iterator

using nlohmann::const_iterator = typename Container::const_iterator

Definition at line 15999 of file json.hpp.

◆ Container

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

Definition at line 15997 of file json.hpp.

◆ iterator

using nlohmann::iterator = typename Container::iterator

Definition at line 15998 of file json.hpp.

◆ json

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

Definition at line 3365 of file json.hpp.

◆ mapped_type

Definition at line 15996 of file json.hpp.

◆ ordered_json

◆ 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

Definition at line 16162 of file json.hpp.

◆ size_type

using nlohmann::size_type = typename Container::size_type

Definition at line 16000 of file json.hpp.

◆ value_type

using nlohmann::value_type = typename Container::value_type

Definition at line 16001 of file json.hpp.

Function Documentation

◆ array_index()

BasicJsonType::size_type nlohmann::array_index ( const std::string & s)
staticprivate
Parameters
[in]sreference token to be converted into an array index
Returns
integer representation of s
Exceptions
parse_error.106if an array index begins with '0'
parse_error.109if an array index begins not with a digit
out_of_range.404if string s could not be converted to an integer
out_of_range.410if an array index exceeds size_type

Definition at line 11891 of file json.hpp.

References BasicJsonType(), nlohmann::detail::out_of_range::create(), nlohmann::detail::parse_error::create(), JSON_CATCH, JSON_HEDLEY_UNLIKELY, JSON_THROW, JSON_TRY, and res.

Referenced by nlohmann::detail::binary_writer< basic_json, CharType >::calc_bson_array_size(), contains(), get_and_create(), get_checked(), get_checked(), get_unchecked(), get_unchecked(), and nlohmann::detail::binary_writer< basic_json, CharType >::write_bson_array().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ at()

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

Definition at line 16031 of file json.hpp.

References begin(), end(), and JSON_THROW.

Referenced by nlohmann::detail::from_json_tuple_impl_base().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ back()

return reference_tokens nlohmann::back ( )

References reference_tokens.

◆ BasicJsonType()

JSON_PRIVATE_UNLESS_TESTED JSON pointer has no nlohmann::BasicJsonType ( )

References nlohmann::detail::out_of_range::create().

Referenced by nlohmann::detail::json_sax_dom_callback_parser< BasicJsonType >::json_sax_dom_callback_parser(), nlohmann::detail::json_sax_dom_parser< BasicJsonType >::json_sax_dom_parser(), array_index(), nlohmann::detail::binary_writer< basic_json, CharType >::calc_bson_element_size(), nlohmann::detail::binary_writer< basic_json, CharType >::calc_bson_entry_header_size(), nlohmann::detail::external_constructor< value_t::array >::construct(), nlohmann::detail::external_constructor< value_t::array >::construct(), nlohmann::detail::external_constructor< value_t::array >::construct(), nlohmann::detail::external_constructor< value_t::array >::construct(), nlohmann::detail::external_constructor< value_t::array >::construct(), nlohmann::detail::external_constructor< value_t::binary >::construct(), nlohmann::detail::external_constructor< value_t::binary >::construct(), nlohmann::detail::external_constructor< value_t::boolean >::construct(), nlohmann::detail::external_constructor< value_t::number_float >::construct(), nlohmann::detail::external_constructor< value_t::number_integer >::construct(), nlohmann::detail::external_constructor< value_t::number_unsigned >::construct(), nlohmann::detail::external_constructor< value_t::object >::construct(), nlohmann::detail::external_constructor< value_t::object >::construct(), nlohmann::detail::external_constructor< value_t::object >::construct(), nlohmann::detail::external_constructor< value_t::string >::construct(), nlohmann::detail::external_constructor< value_t::string >::construct(), nlohmann::detail::external_constructor< value_t::string >::construct(), contains(), nlohmann::detail::invalid_iterator::create(), nlohmann::detail::other_error::create(), nlohmann::detail::out_of_range::create(), nlohmann::detail::parse_error::create(), nlohmann::detail::parse_error::create(), nlohmann::detail::type_error::create(), nlohmann::detail::exception::diagnostics(), nlohmann::detail::serializer< BasicJsonType >::dump(), flatten(), nlohmann::detail::serializer< BasicJsonType >::for(), nlohmann::adl_serializer< ValueType, typename >::from_json(), nlohmann::adl_serializer< ValueType, typename >::from_json(), nlohmann::detail::from_json(), nlohmann::detail::from_json(), nlohmann::detail::from_json(), nlohmann::detail::from_json(), nlohmann::detail::from_json(), nlohmann::detail::from_json(), nlohmann::detail::from_json(), nlohmann::detail::from_json(), nlohmann::detail::from_json(), nlohmann::detail::from_json(), nlohmann::detail::from_json(), nlohmann::detail::from_json(), nlohmann::detail::from_json(), nlohmann::detail::from_json(), nlohmann::detail::from_json(), nlohmann::detail::from_json(), nlohmann::detail::from_json(), nlohmann::detail::from_json(), nlohmann::detail::from_json(), nlohmann::detail::from_json_array_impl(), nlohmann::detail::from_json_array_impl(), nlohmann::detail::from_json_array_impl(), nlohmann::detail::from_json_array_impl(), nlohmann::detail::from_json_inplace_array_impl(), nlohmann::detail::from_json_tuple_impl(), nlohmann::detail::from_json_tuple_impl(), nlohmann::detail::from_json_tuple_impl(), nlohmann::detail::from_json_tuple_impl(), nlohmann::detail::from_json_tuple_impl_base(), get_and_create(), nlohmann::detail::get_arithmetic_value(), nlohmann::detail::binary_reader< basic_json, InputType >::get_bson_binary(), nlohmann::detail::binary_reader< basic_json, InputType >::get_bson_string(), nlohmann::detail::binary_reader< basic_json, InputType >::get_cbor_binary(), nlohmann::detail::binary_reader< basic_json, InputType >::get_cbor_string(), get_checked(), get_checked(), nlohmann::detail::binary_reader< basic_json, InputType >::get_msgpack_string(), nlohmann::detail::binary_reader< basic_json, InputType >::get_ubjson_high_precision_number(), nlohmann::detail::binary_reader< basic_json, InputType >::get_ubjson_size_type(), nlohmann::detail::binary_reader< basic_json, InputType >::get_ubjson_size_value(), nlohmann::detail::binary_reader< basic_json, InputType >::get_ubjson_string(), nlohmann::detail::binary_reader< basic_json, InputType >::get_ubjson_value(), get_unchecked(), get_unchecked(), nlohmann::detail::json_sax_dom_callback_parser< BasicJsonType >::handle_value(), nlohmann::detail::json_sax_dom_parser< BasicJsonType >::handle_value(), nlohmann::detail::hash(), nlohmann::detail::json_sax_dom_callback_parser< BasicJsonType >::key(), nlohmann::detail::from_json_fn::operator()(), nlohmann::detail::to_json_fn::operator()(), nlohmann::detail::parser< BasicJsonType, InputAdapterType >::parse(), nlohmann::detail::binary_reader< basic_json, InputType >::parse_bson_element_internal(), nlohmann::detail::binary_reader< basic_json, InputType >::parse_cbor_internal(), nlohmann::detail::binary_reader< basic_json, InputType >::parse_msgpack_internal(), nlohmann::detail::binary_reader< basic_json, InputType >::sax_parse(), nlohmann::detail::parser< BasicJsonType, InputAdapterType >::sax_parse(), nlohmann::detail::parser< BasicJsonType, InputAdapterType >::sax_parse_internal(), split(), nlohmann::adl_serializer< ValueType, typename >::to_json(), nlohmann::detail::to_json(), nlohmann::detail::to_json(), nlohmann::detail::to_json(), nlohmann::detail::to_json(), nlohmann::detail::to_json(), nlohmann::detail::to_json(), nlohmann::detail::to_json(), nlohmann::detail::to_json(), nlohmann::detail::to_json(), nlohmann::detail::to_json(), nlohmann::detail::to_json(), nlohmann::detail::to_json(), nlohmann::detail::to_json(), nlohmann::detail::to_json(), nlohmann::detail::to_json(), nlohmann::detail::to_json(), nlohmann::detail::to_json(), nlohmann::detail::to_json(), nlohmann::detail::to_json_tuple_impl(), nlohmann::detail::binary_writer< basic_json, CharType >::ubjson_prefix(), nlohmann::detail::binary_reader< basic_json, InputType >::unexpect_eof(), unflatten(), nlohmann::detail::binary_writer< basic_json, CharType >::write_bson(), nlohmann::detail::binary_writer< basic_json, CharType >::write_bson_element(), nlohmann::detail::binary_writer< basic_json, CharType >::write_bson_unsigned(), nlohmann::detail::binary_writer< basic_json, CharType >::write_cbor(), nlohmann::detail::binary_writer< basic_json, CharType >::write_msgpack(), nlohmann::detail::binary_writer< basic_json, CharType >::write_number_with_ubjson_prefix(), and nlohmann::detail::binary_writer< basic_json, CharType >::write_ubjson().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ begin()

◆ contains()

bool nlohmann::contains ( const BasicJsonType * ptr) const
private
Exceptions
parse_error.106if an array index begins with '0'
parse_error.109if an array index was not a number

Definition at line 12221 of file json.hpp.

References nlohmann::detail::array, array_index(), BasicJsonType(), nlohmann::detail::binary, nlohmann::detail::boolean, nlohmann::detail::discarded, i, JSON_HEDLEY_UNLIKELY, nlohmann::detail::null, nlohmann::detail::number_float, nlohmann::detail::number_integer, nlohmann::detail::number_unsigned, nlohmann::detail::object, reference_tokens, and nlohmann::detail::string.

Here is the call graph for this function:

◆ count()

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

Definition at line 16118 of file json.hpp.

References begin(), and end().

Here is the call graph for this function:

◆ emplace()

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

Definition at line 16016 of file json.hpp.

References begin(), and end().

Referenced by insert(), and operator[]().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ end()

◆ erase() [1/3]

size_type nlohmann::erase ( const Key & key)

Definition at line 16053 of file json.hpp.

References begin(), and end().

Referenced by erase().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ erase() [2/3]

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

Definition at line 16071 of file json.hpp.

◆ erase() [3/3]

iterator nlohmann::erase ( iterator pos)

Definition at line 16069 of file json.hpp.

References erase().

Here is the call graph for this function:

◆ find()

const_iterator nlohmann::find ( const Key & key)

Definition at line 16128 of file json.hpp.

References begin(), and end().

Here is the call graph for this function:

◆ flatten()

void nlohmann::flatten ( const std::string & reference_string,
const BasicJsonType & value,
BasicJsonType & result )
staticprivate
Parameters
[in]reference_stringthe reference string to the current value
[in]valuethe value to consider
[in,out]resultthe result object to insert values to
Note
Empty objects or arrays are flattened to null.

Definition at line 12365 of file json.hpp.

References nlohmann::detail::array, BasicJsonType(), nlohmann::detail::binary, nlohmann::detail::boolean, nlohmann::detail::discarded, nlohmann::detail::escape(), flatten(), i, nlohmann::detail::null, nlohmann::detail::number_float, nlohmann::detail::number_integer, nlohmann::detail::number_unsigned, nlohmann::detail::object, result, and nlohmann::detail::string.

Referenced by flatten().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_and_create()

BasicJsonType & nlohmann::get_and_create ( BasicJsonType & j) const
private

@complexity Linear in the number of reference tokens.

Exceptions
parse_error.109if array index is not a number
type_error.313if value cannot be unflattened

Definition at line 11953 of file json.hpp.

References nlohmann::detail::array, array_index(), BasicJsonType(), nlohmann::detail::binary, nlohmann::detail::boolean, nlohmann::detail::type_error::create(), nlohmann::detail::discarded, JSON_THROW, nlohmann::detail::null, nlohmann::detail::number_float, nlohmann::detail::number_integer, nlohmann::detail::number_unsigned, nlohmann::detail::object, reference_tokens, result, and nlohmann::detail::string.

Here is the call graph for this function:

◆ get_checked() [1/2]

BasicJsonType & nlohmann::get_checked ( BasicJsonType * ptr) const
private
Exceptions
parse_error.106if an array index begins with '0'
parse_error.109if an array index was not a number
out_of_range.402if the array index '-' is used
out_of_range.404if the JSON pointer can not be resolved

Definition at line 12078 of file json.hpp.

References nlohmann::detail::array, array_index(), BasicJsonType(), nlohmann::detail::binary, nlohmann::detail::boolean, nlohmann::detail::out_of_range::create(), nlohmann::detail::discarded, JSON_HEDLEY_UNLIKELY, JSON_THROW, nlohmann::detail::null, nlohmann::detail::number_float, nlohmann::detail::number_integer, nlohmann::detail::number_unsigned, nlohmann::detail::object, reference_tokens, and nlohmann::detail::string.

Here is the call graph for this function:

◆ get_checked() [2/2]

const BasicJsonType & nlohmann::get_checked ( const BasicJsonType * ptr) const
private
Exceptions
parse_error.106if an array index begins with '0'
parse_error.109if an array index was not a number
out_of_range.402if the array index '-' is used
out_of_range.404if the JSON pointer can not be resolved

Definition at line 12177 of file json.hpp.

References nlohmann::detail::array, array_index(), BasicJsonType(), nlohmann::detail::binary, nlohmann::detail::boolean, nlohmann::detail::out_of_range::create(), nlohmann::detail::discarded, JSON_HEDLEY_UNLIKELY, JSON_THROW, nlohmann::detail::null, nlohmann::detail::number_float, nlohmann::detail::number_integer, nlohmann::detail::number_unsigned, nlohmann::detail::object, reference_tokens, and nlohmann::detail::string.

Here is the call graph for this function:

◆ get_unchecked() [1/2]

BasicJsonType & nlohmann::get_unchecked ( BasicJsonType * ptr) const
private
Note
This version does not throw if a value is not present, but tries to create nested values instead. For instance, calling this function with pointer "/this/that" on a null value is equivalent to calling operator[]("this").operator[]("that") on that value, effectively changing the null value to an object.
Parameters
[in]ptra JSON value
Returns
reference to the JSON value pointed to by the JSON pointer

@complexity Linear in the length of the JSON pointer.

Exceptions
parse_error.106if an array index begins with '0'
parse_error.109if an array index was not a number
out_of_range.404if the JSON pointer can not be resolved

Definition at line 12024 of file json.hpp.

References nlohmann::detail::array, array_index(), BasicJsonType(), nlohmann::detail::binary, nlohmann::detail::boolean, nlohmann::detail::out_of_range::create(), nlohmann::detail::discarded, JSON_THROW, nlohmann::detail::null, nlohmann::detail::number_float, nlohmann::detail::number_integer, nlohmann::detail::number_unsigned, nlohmann::detail::object, reference_tokens, nlohmann::detail::string, and x.

Here is the call graph for this function:

◆ get_unchecked() [2/2]

const BasicJsonType & nlohmann::get_unchecked ( const BasicJsonType * ptr) const
private
Parameters
[in]ptra JSON value
Returns
const reference to the JSON value pointed to by the JSON pointer
Exceptions
parse_error.106if an array index begins with '0'
parse_error.109if an array index was not a number
out_of_range.402if the array index '-' is used
out_of_range.404if the JSON pointer can not be resolved

Definition at line 12131 of file json.hpp.

References nlohmann::detail::array, array_index(), BasicJsonType(), nlohmann::detail::binary, nlohmann::detail::boolean, nlohmann::detail::out_of_range::create(), nlohmann::detail::discarded, JSON_HEDLEY_UNLIKELY, JSON_THROW, nlohmann::detail::null, nlohmann::detail::number_float, nlohmann::detail::number_integer, nlohmann::detail::number_unsigned, nlohmann::detail::object, reference_tokens, and nlohmann::detail::string.

Here is the call graph for this function:

◆ insert() [1/3]

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

Definition at line 16150 of file json.hpp.

References begin(), and end().

Here is the call graph for this function:

◆ insert() [2/3]

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

Definition at line 16167 of file json.hpp.

References insert().

Here is the call graph for this function:

◆ insert() [3/3]

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

Definition at line 16148 of file json.hpp.

References emplace().

Referenced by insert().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ NLOHMANN_CAN_CALL_STD_FUNC_IMPL() [1/2]

nlohmann::NLOHMANN_CAN_CALL_STD_FUNC_IMPL ( begin )

References begin().

Here is the call graph for this function:

◆ NLOHMANN_CAN_CALL_STD_FUNC_IMPL() [2/2]

nlohmann::NLOHMANN_CAN_CALL_STD_FUNC_IMPL ( end )

References end().

Here is the call graph for this function:

◆ operator!=()

friend bool nlohmann::operator!= ( json_pointer const & lhs,
json_pointer const & rhs )
privatenoexcept
Parameters
[in]lhsJSON pointer to compare
[in]rhsJSON pointer to compare
Returns
whether lhs is not equal rhs

@complexity Linear in the length of the JSON pointer

@exceptionsafety No-throw guarantee: this function never throws exceptions.

Definition at line 12471 of file json.hpp.

References rhs.

◆ operator==()

friend bool nlohmann::operator== ( json_pointer const & lhs,
json_pointer const & rhs )
privatenoexcept
Parameters
[in]lhsJSON pointer to compare
[in]rhsJSON pointer to compare
Returns
whether lhs is equal to rhs

@complexity Linear in the length of the JSON pointer

@exceptionsafety No-throw guarantee: this function never throws exceptions.

Definition at line 12455 of file json.hpp.

References rhs.

◆ operator[]()

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

Definition at line 16027 of file json.hpp.

References emplace().

Here is the call graph for this function:

◆ ordered_map() [1/3]

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

Definition at line 16005 of file json.hpp.

References Allocator.

◆ ordered_map() [2/3]

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

Definition at line 16009 of file json.hpp.

References Allocator.

◆ ordered_map() [3/3]

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

Definition at line 16012 of file json.hpp.

References Allocator.

◆ pop_back()

reference_tokens nlohmann::pop_back ( )

References res.

◆ split()

std::vector< std::string > nlohmann::split ( const std::string & reference_string)
staticprivate
Note
This function is only called by the json_pointer constructor. All exceptions below are documented there.
Exceptions
parse_error.107if the pointer is not empty or begins with '/'
parse_error.108if character '~' is not followed by '0' or '1'

Definition at line 12298 of file json.hpp.

References BasicJsonType(), nlohmann::detail::parse_error::create(), JSON_ASSERT, JSON_HEDLEY_UNLIKELY, JSON_THROW, result, and nlohmann::detail::unescape().

Here is the call graph for this function:

◆ unflatten()

BasicJsonType nlohmann::unflatten ( const BasicJsonType & value)
staticprivate
Parameters
[in]valueflattened JSON
Returns
unflattened JSON
Exceptions
parse_error.109if array index is not a number
type_error.314if value is not an object
type_error.315if object values are not primitive
type_error.313if value cannot be unflattened

Definition at line 12420 of file json.hpp.

References BasicJsonType(), nlohmann::detail::type_error::create(), JSON_HEDLEY_UNLIKELY, JSON_THROW, and result.

Here is the call graph for this function:

Variable Documentation

◆ __pad0__

JSON_PRIVATE_UNLESS_TESTED nlohmann::__pad0__
private

Definition at line 11933 of file json.hpp.

◆ a

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

Definition at line 11787 of file json.hpp.

Referenced by nlohmann::detail::exception::diagnostics().

◆ 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 json.hpp:3370

Definition at line 15991 of file json.hpp.

Referenced by ordered_map(), ordered_map(), and ordered_map().

◆ 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
JSON Pointer defines a string syntax for identifying a specific value within a JSON document.
Definition json.hpp:3359
*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 json.hpp:11829

Definition at line 11828 of file json.hpp.

◆ b

◆ https

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

Definition at line 11767 of file json.hpp.

◆ ordered_map

* nlohmann::ordered_map

Definition at line 15987 of file json.hpp.

◆ parent

JSON_PRIVATE_UNLESS_TESTED JSON pointer has no nlohmann::parent

Definition at line 11851 of file json.hpp.

◆ reference_tokens

*the reference tokens std::vector< std::string > nlohmann::reference_tokens = {reference_tokens[0]}
private

◆ res

◆ result

return nlohmann::result = *this
private

Definition at line 11939 of file json.hpp.

Referenced by nlohmann::detail::binary_writer< basic_json, CharType >::calc_bson_array_size(), nlohmann::detail::binary_writer< basic_json, CharType >::calc_bson_object_size(), flatten(), get_and_create(), nlohmann::detail::binary_reader< basic_json, InputType >::get_binary(), nlohmann::detail::binary_reader< basic_json, InputType >::get_bson_binary(), nlohmann::detail::binary_reader< basic_json, InputType >::get_bson_string(), nlohmann::detail::binary_reader< basic_json, InputType >::get_cbor_binary(), nlohmann::detail::binary_reader< basic_json, InputType >::get_cbor_string(), nlohmann::detail::iterator_input_adapter< iterator_type >::get_character(), nlohmann::detail::binary_reader< basic_json, InputType >::get_msgpack_binary(), nlohmann::detail::binary_reader< basic_json, InputType >::get_msgpack_string(), nlohmann::detail::binary_reader< basic_json, InputType >::get_number(), nlohmann::detail::binary_reader< basic_json, InputType >::get_string(), nlohmann::detail::lexer< BasicJsonType, InputAdapterType >::get_token_string(), nlohmann::detail::binary_reader< basic_json, InputType >::get_ubjson_size_type(), nlohmann::detail::binary_reader< basic_json, InputType >::get_ubjson_size_value(), nlohmann::detail::binary_reader< basic_json, InputType >::get_ubjson_string(), nlohmann::detail::iter_impl< typename std::conditional< std::is_const< BasicJsonType >::value, typename std::remove_const< BasicJsonType >::type, const BasicJsonType >::type >::operator+(), nlohmann::detail::iter_impl< typename std::conditional< std::is_const< BasicJsonType >::value, typename std::remove_const< BasicJsonType >::type, const BasicJsonType >::type >::operator+, nlohmann::detail::primitive_iterator_t::operator+(), nlohmann::detail::iter_impl< typename std::conditional< std::is_const< BasicJsonType >::value, typename std::remove_const< BasicJsonType >::type, const BasicJsonType >::type >::operator++(), nlohmann::detail::primitive_iterator_t::operator++(), nlohmann::detail::iter_impl< typename std::conditional< std::is_const< BasicJsonType >::value, typename std::remove_const< BasicJsonType >::type, const BasicJsonType >::type >::operator-(), nlohmann::detail::iter_impl< typename std::conditional< std::is_const< BasicJsonType >::value, typename std::remove_const< BasicJsonType >::type, const BasicJsonType >::type >::operator--(), nlohmann::detail::primitive_iterator_t::operator--(), nlohmann::detail::parser< BasicJsonType, InputAdapterType >::parse(), nlohmann::detail::binary_reader< basic_json, InputType >::sax_parse(), nlohmann::detail::parser< BasicJsonType, InputAdapterType >::sax_parse(), split(), nlohmann::detail::binary_writer< basic_json, CharType >::to_char_type(), and unflatten().

◆ rhs

◆ this

return * nlohmann::this

Definition at line 11799 of file json.hpp.

◆ token

* brief create a new JSON pointer by appending the unescaped token at the end of the JSON pointer* sa std::string 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 std::string token
Definition json.hpp:11822

Definition at line 11821 of file json.hpp.