|
Instrument Neutral Distributed Interface INDI 2.2.5
|
JSON Pointer defines a string syntax for identifying a specific value within a JSON document. More...
#include <indijson.hpp>
Public Types | |
| using | string_t = typename string_t_helper< RefStringType >::type |
Public Member Functions | |
| json_pointer (const string_t &s="") | |
| create JSON pointer | |
| string_t | to_string () const |
| return a string representation of the JSON pointer | |
| operator string_t () 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/= (string_t 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 string_t & | back () const |
| return last reference token | |
| void | push_back (const string_t &token) |
| append an unescaped token at the end of the reference pointer | |
| void | push_back (string_t &&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 |
| template<typename > | |
| class | json_pointer |
| 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, string_t 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 | |
| template<typename RefStringTypeLhs , typename RefStringTypeRhs > | |
| bool | operator== (json_pointer< RefStringTypeLhs > const &lhs, json_pointer< RefStringTypeRhs > const &rhs) noexcept |
| compares two JSON pointers for equality | |
| template<typename RefStringTypeLhs , typename RefStringTypeRhs > | |
| bool | operator!= (json_pointer< RefStringTypeLhs > const &lhs, json_pointer< RefStringTypeRhs > const &rhs) noexcept |
| compares two JSON pointers for inequality | |
JSON Pointer defines a string syntax for identifying a specific value within a JSON document.
Definition at line 13242 of file indijson.hpp.
| using nlohmann::json_pointer< RefStringType >::string_t = typename string_t_helper<RefStringType>::type |
Definition at line 13265 of file indijson.hpp.
|
inlineexplicit |
create JSON pointer
Definition at line 13269 of file indijson.hpp.
|
inline |
return last reference token
Definition at line 13367 of file indijson.hpp.
|
inlinenoexcept |
return whether pointer points to the root document
Definition at line 13393 of file indijson.hpp.
|
inline |
return a string representation of the JSON pointer
Definition at line 13287 of file indijson.hpp.
|
inline |
append another JSON pointer at the end of this JSON pointer
Definition at line 13294 of file indijson.hpp.
|
inline |
append an array index at the end of this JSON pointer
Definition at line 13312 of file indijson.hpp.
|
inline |
append an unescaped reference token at the end of this JSON pointer
Definition at line 13304 of file indijson.hpp.
|
inline |
returns the parent of this JSON pointer
Definition at line 13341 of file indijson.hpp.
|
inline |
remove last reference token
Definition at line 13355 of file indijson.hpp.
|
inline |
append an unescaped token at the end of the reference pointer
Definition at line 13379 of file indijson.hpp.
|
inline |
append an unescaped token at the end of the reference pointer
Definition at line 13386 of file indijson.hpp.
|
inline |
return a string representation of the JSON pointer
Definition at line 13275 of file indijson.hpp.
|
friend |
Definition at line 13246 of file indijson.hpp.
Definition at line 13249 of file indijson.hpp.
|
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.
Definition at line 14090 of file indijson.hpp.
|
friend |
create a new JSON pointer by appending the right JSON pointer at the end of the left JSON pointer
Definition at line 13319 of file indijson.hpp.
|
friend |
create a new JSON pointer by appending the array-index-token at the end of the JSON pointer
Definition at line 13334 of file indijson.hpp.
|
friend |
create a new JSON pointer by appending the unescaped token at the end of the JSON pointer
Definition at line 13327 of file indijson.hpp.
|
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.
Definition at line 14083 of file indijson.hpp.