WPILibC++ 2024.3.2
|
JSON Pointer defines a string syntax for identifying a specific value within a JSON document. More...
Public Types | |
using | string_t = typename string_t_helper< RefStringType >::type |
Public Member Functions | |
json_pointer (const string_t &s="") | |
create JSON pointer More... | |
string_t | to_string () const |
return a string representation of the JSON pointer More... | |
operator string_t () const | |
return a string representation of the JSON pointer More... | |
json_pointer & | operator/= (const json_pointer &ptr) |
append another JSON pointer at the end of this JSON pointer More... | |
json_pointer & | operator/= (string_t token) |
append an unescaped reference token at the end of this JSON pointer More... | |
json_pointer & | operator/= (std::size_t array_idx) |
append an array index at the end of this JSON pointer More... | |
json_pointer | parent_pointer () const |
returns the parent of this JSON pointer More... | |
void | pop_back () |
remove last reference token More... | |
const string_t & | back () const |
return last reference token More... | |
void | push_back (const string_t &token) |
append an unescaped token at the end of the reference pointer More... | |
void | push_back (string_t &&token) |
append an unescaped token at the end of the reference pointer More... | |
bool | empty () const noexcept |
return whether pointer points to the root document More... | |
Friends | |
class | basic_json |
template<typename > | |
class | json_pointer |
std::ostream & | operator<< (std::ostream &o, const json_pointer &ptr) |
write string representation of the JSON pointer to stream More... | |
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 More... | |
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 More... | |
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 More... | |
template<typename RefStringTypeLhs , typename RefStringTypeRhs > | |
bool | operator== (const json_pointer< RefStringTypeLhs > &lhs, const json_pointer< RefStringTypeRhs > &rhs) noexcept |
compares two JSON pointers for equality More... | |
template<typename RefStringTypeLhs , typename StringType > | |
bool | operator== (const json_pointer< RefStringTypeLhs > &lhs, const StringType &rhs) |
compares JSON pointer and string for equality More... | |
template<typename RefStringTypeRhs , typename StringType > | |
bool | operator== (const StringType &lhs, const json_pointer< RefStringTypeRhs > &rhs) |
compares string and JSON pointer for equality More... | |
template<typename RefStringTypeLhs , typename RefStringTypeRhs > | |
bool | operator!= (const json_pointer< RefStringTypeLhs > &lhs, const json_pointer< RefStringTypeRhs > &rhs) noexcept |
compares two JSON pointers for inequality More... | |
template<typename RefStringTypeLhs , typename StringType > | |
bool | operator!= (const json_pointer< RefStringTypeLhs > &lhs, const StringType &rhs) |
compares JSON pointer and string for inequality More... | |
template<typename RefStringTypeRhs , typename StringType > | |
bool | operator!= (const StringType &lhs, const json_pointer< RefStringTypeRhs > &rhs) |
compares string and JSON pointer for inequality More... | |
template<typename RefStringTypeLhs , typename RefStringTypeRhs > | |
bool | operator< (const json_pointer< RefStringTypeLhs > &lhs, const json_pointer< RefStringTypeRhs > &rhs) noexcept |
compares two JSON pointer for less-than More... | |
JSON Pointer defines a string syntax for identifying a specific value within a JSON document.
using json_pointer< RefStringType >::string_t = typename string_t_helper<RefStringType>::type |
|
inlineexplicit |
create JSON pointer
|
inline |
return last reference token
|
inlinenoexcept |
return whether pointer points to the root document
|
inline |
return a string representation of the 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 unescaped reference token at the end of this JSON pointer
|
inline |
returns the parent of this JSON pointer
|
inline |
remove last reference token
|
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
|
friend |
|
friend |
compares two JSON pointers for inequality
|
friend |
compares JSON pointer and string for inequality
|
friend |
compares string and JSON pointer for inequality
|
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 unescaped token at the end of the JSON pointer
|
friend |
compares two JSON pointer for less-than
|
friend |
write string representation of the JSON pointer to stream
|
friend |
compares two JSON pointers for equality
|
friend |
compares JSON pointer and string for equality
|
friend |
compares string and JSON pointer for equality