|
BmnRoot
|
JSON Pointer defines a string syntax for identifying a specific value within a JSON document. More...
#include <json.hpp>
Public Member Functions | |
| json_pointer (const std::string &s="") | |
| create JSON pointer | |
| std::string | to_string () const |
| return a string representation of the JSON pointer | |
| operator std::string () const | |
| return a string representation of the JSON pointer | |
| json_pointer & | operator/= (const json_pointer &ptr) |
| append another JSON pointer at the end of this JSON pointer | |
| json_pointer & | operator/= (std::string token) |
| append an unescaped reference token at the end of this JSON pointer | |
| json_pointer & | operator/= (std::size_t array_idx) |
| append an array index at the end of this JSON pointer | |
| json_pointer | parent_pointer () const |
| returns the parent of this JSON pointer | |
| void | pop_back () |
| remove last reference token | |
| const std::string & | back () const |
| return last reference token | |
| void | push_back (const std::string &token) |
| append an unescaped token at the end of the reference pointer | |
| void | push_back (std::string &&token) |
| append an unescaped token at the end of the reference pointer | |
| bool | empty () const noexcept |
| return whether pointer points to the root document | |
| json_pointer (const std::string &s="") | |
| create JSON pointer | |
| std::string | to_string () const |
| return a string representation of the JSON pointer | |
| operator std::string () const | |
| return a string representation of the JSON pointer | |
| json_pointer & | operator/= (const json_pointer &ptr) |
| append another JSON pointer at the end of this JSON pointer | |
| json_pointer & | operator/= (std::string token) |
| append an unescaped reference token at the end of this JSON pointer | |
| json_pointer & | operator/= (std::size_t array_idx) |
| append an array index at the end of this JSON pointer | |
| json_pointer | parent_pointer () const |
| returns the parent of this JSON pointer | |
| void | pop_back () |
| remove last reference token | |
| const std::string & | back () const |
| return last reference token | |
| void | push_back (const std::string &token) |
| append an unescaped token at the end of the reference pointer | |
| void | push_back (std::string &&token) |
| append an unescaped token at the end of the reference pointer | |
| bool | empty () const noexcept |
| return whether pointer points to the root document | |
| json_pointer (const std::string &s="") | |
| create JSON pointer | |
| std::string | to_string () const |
| return a string representation of the JSON pointer | |
| operator std::string () const | |
| return a string representation of the JSON pointer | |
| json_pointer & | operator/= (const json_pointer &ptr) |
| append another JSON pointer at the end of this JSON pointer | |
| json_pointer & | operator/= (std::string token) |
| append an unescaped reference token at the end of this JSON pointer | |
| json_pointer & | operator/= (std::size_t array_idx) |
| append an array index at the end of this JSON pointer | |
| json_pointer | parent_pointer () const |
| returns the parent of this JSON pointer | |
| void | pop_back () |
| remove last reference token | |
| const std::string & | back () const |
| return last reference token | |
| void | push_back (const std::string &token) |
| append an unescaped token at the end of the reference pointer | |
| void | push_back (std::string &&token) |
| append an unescaped token at the end of the reference pointer | |
| bool | empty () const noexcept |
| return whether pointer points to the root document | |
Friends | |
| class | basic_json |
| json_pointer | operator/ (const json_pointer &lhs, const json_pointer &rhs) |
| create a new JSON pointer by appending the right JSON pointer at the end of the left JSON pointer | |
| json_pointer | operator/ (const json_pointer &lhs, std::string token) |
| create a new JSON pointer by appending the unescaped token at the end of the JSON pointer | |
| json_pointer | operator/ (const json_pointer &lhs, std::size_t array_idx) |
| create a new JSON pointer by appending the array-index-token at the end of the JSON pointer | |
| 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 | |
| json_pointer | operator/ (const json_pointer &lhs, const json_pointer &rhs) |
| create a new JSON pointer by appending the right JSON pointer at the end of the left JSON pointer | |
| json_pointer | operator/ (const json_pointer &lhs, std::string token) |
| create a new JSON pointer by appending the unescaped token at the end of the JSON pointer | |
| json_pointer | operator/ (const json_pointer &lhs, std::size_t array_idx) |
| create a new JSON pointer by appending the array-index-token at the end of the JSON pointer | |
| 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 | |
| json_pointer | operator/ (const json_pointer &lhs, const json_pointer &rhs) |
| create a new JSON pointer by appending the right JSON pointer at the end of the left JSON pointer | |
| json_pointer | operator/ (const json_pointer &lhs, std::string token) |
| create a new JSON pointer by appending the unescaped token at the end of the JSON pointer | |
| json_pointer | operator/ (const json_pointer &lhs, std::size_t array_idx) |
| create a new JSON pointer by appending the array-index-token at the end of the JSON pointer | |
| 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 | |
JSON Pointer defines a string syntax for identifying a specific value within a JSON document.
|
inlineexplicit |
create JSON pointer
|
inlineexplicit |
create JSON pointer
|
inlineexplicit |
create JSON pointer
|
inline |
return last reference token
Definition at line 12366 of file json.hpp.
References nlohmann::detail::out_of_range::create(), nlohmann::json_pointer< BasicJsonType >::empty(), JSON_HEDLEY_UNLIKELY, and JSON_THROW.
|
inline |
return last reference token
Definition at line 12366 of file json.hpp.
References nlohmann::detail::out_of_range::create(), nlohmann::json_pointer< BasicJsonType >::empty(), JSON_HEDLEY_UNLIKELY, and JSON_THROW.
|
inline |
return last reference token
Definition at line 12366 of file json.hpp.
References nlohmann::detail::out_of_range::create(), nlohmann::json_pointer< BasicJsonType >::empty(), JSON_HEDLEY_UNLIKELY, and JSON_THROW.
|
inlinenoexcept |
return whether pointer points to the root document
Definition at line 12392 of file json.hpp.
Referenced by nlohmann::json_pointer< BasicJsonType >::back(), nlohmann::json_pointer< BasicJsonType >::parent_pointer(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::patch(), and nlohmann::json_pointer< BasicJsonType >::pop_back().
|
inlinenoexcept |
return whether pointer points to the root document
|
inlinenoexcept |
return whether pointer points to the root document
|
inline |
return a string representation of the JSON pointer
Definition at line 12286 of file json.hpp.
References nlohmann::json_pointer< BasicJsonType >::to_string().
|
inline |
return a string representation of the JSON pointer
Definition at line 12286 of file json.hpp.
References nlohmann::json_pointer< BasicJsonType >::to_string().
|
inline |
return a string representation of the JSON pointer
Definition at line 12286 of file json.hpp.
References nlohmann::json_pointer< BasicJsonType >::to_string().
|
inline |
append another JSON pointer at the end of this JSON pointer
|
inline |
append another JSON pointer at the end of this JSON pointer
|
inline |
append another JSON pointer at the end of this JSON pointer
|
inline |
append an array index at the end of this JSON pointer
|
inline |
append an array index at the end of this JSON pointer
|
inline |
append an array index at the end of this JSON pointer
|
inline |
append an unescaped reference token at the end of this JSON pointer
Definition at line 12303 of file json.hpp.
References nlohmann::json_pointer< BasicJsonType >::push_back().
|
inline |
append an unescaped reference token at the end of this JSON pointer
Definition at line 12303 of file json.hpp.
References nlohmann::json_pointer< BasicJsonType >::push_back().
|
inline |
append an unescaped reference token at the end of this JSON pointer
Definition at line 12303 of file json.hpp.
References nlohmann::json_pointer< BasicJsonType >::push_back().
|
inline |
returns the parent of this JSON pointer
Definition at line 12340 of file json.hpp.
References nlohmann::json_pointer< BasicJsonType >::empty().
|
inline |
returns the parent of this JSON pointer
Definition at line 12340 of file json.hpp.
References nlohmann::json_pointer< BasicJsonType >::empty().
|
inline |
returns the parent of this JSON pointer
Definition at line 12340 of file json.hpp.
References nlohmann::json_pointer< BasicJsonType >::empty(), and nlohmann::json_pointer< BasicJsonType >::pop_back().
|
inline |
remove last reference token
Definition at line 12354 of file json.hpp.
References nlohmann::detail::out_of_range::create(), nlohmann::json_pointer< BasicJsonType >::empty(), JSON_HEDLEY_UNLIKELY, and JSON_THROW.
Referenced by nlohmann::json_pointer< BasicJsonType >::parent_pointer(), and nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::patch().
|
inline |
remove last reference token
Definition at line 12354 of file json.hpp.
References nlohmann::detail::out_of_range::create(), nlohmann::json_pointer< BasicJsonType >::empty(), JSON_HEDLEY_UNLIKELY, and JSON_THROW.
|
inline |
remove last reference token
Definition at line 12354 of file json.hpp.
References nlohmann::detail::out_of_range::create(), nlohmann::json_pointer< BasicJsonType >::empty(), JSON_HEDLEY_UNLIKELY, and JSON_THROW.
|
inline |
append an unescaped token at the end of the reference pointer
Definition at line 12378 of file json.hpp.
Referenced by nlohmann::json_pointer< BasicJsonType >::operator/=().
|
inline |
append an unescaped token at the end of the reference pointer
|
inline |
append an unescaped token at the end of the reference pointer
|
inline |
append an unescaped token at the end of the reference pointer
|
inline |
append an unescaped token at the end of the reference pointer
|
inline |
append an unescaped token at the end of the reference pointer
|
inline |
return a string representation of the JSON pointer
Definition at line 12274 of file json.hpp.
Referenced by nlohmann::json_pointer< BasicJsonType >::operator std::string().
|
inline |
return a string representation of the JSON pointer
|
inline |
return a string representation of the JSON pointer
|
friend |
|
friend |
compares two JSON pointers for inequality
| [in] | lhs | JSON pointer to compare |
| [in] | rhs | JSON pointer to compare |
@complexity Linear in the length of the JSON pointer
@exceptionsafety No-throw guarantee: this function never throws exceptions.
|
friend |
compares two JSON pointers for inequality
| [in] | lhs | JSON pointer to compare |
| [in] | rhs | JSON pointer to compare |
@complexity Linear in the length of the JSON pointer
@exceptionsafety No-throw guarantee: this function never throws exceptions.
|
friend |
compares two JSON pointers for inequality
| [in] | lhs | JSON pointer to compare |
| [in] | rhs | JSON pointer to compare |
@complexity Linear in the length of the JSON pointer
@exceptionsafety No-throw guarantee: this function never throws exceptions.
|
friend |
create a new JSON pointer by appending the right JSON pointer at the end of the left JSON pointer
|
friend |
create a new JSON pointer by appending the right JSON pointer at the end of the left JSON pointer
|
friend |
create a new JSON pointer by appending the right JSON pointer at the end of the left JSON pointer
|
friend |
create a new JSON pointer by appending the array-index-token at the end of the JSON pointer
|
friend |
create a new JSON pointer by appending the array-index-token at the end of the JSON pointer
|
friend |
create a new JSON pointer by appending the array-index-token at the end of the JSON pointer
|
friend |
create a new JSON pointer by appending the unescaped token at the end of the JSON pointer
|
friend |
create a new JSON pointer by appending the unescaped token at the end of the JSON pointer
|
friend |
create a new JSON pointer by appending the unescaped token at the end of the JSON pointer
|
friend |
compares two JSON pointers for equality
| [in] | lhs | JSON pointer to compare |
| [in] | rhs | JSON pointer to compare |
@complexity Linear in the length of the JSON pointer
@exceptionsafety No-throw guarantee: this function never throws exceptions.
|
friend |
compares two JSON pointers for equality
| [in] | lhs | JSON pointer to compare |
| [in] | rhs | JSON pointer to compare |
@complexity Linear in the length of the JSON pointer
@exceptionsafety No-throw guarantee: this function never throws exceptions.
|
friend |
compares two JSON pointers for equality
| [in] | lhs | JSON pointer to compare |
| [in] | rhs | JSON pointer to compare |
@complexity Linear in the length of the JSON pointer
@exceptionsafety No-throw guarantee: this function never throws exceptions.