HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Data Structures | Public Types | Public Member Functions | Friends
hi::v1::jsonpath Class Reference

Data Structures

struct  current
 
struct  descend
 
struct  indices
 
struct  names
 
struct  root
 
struct  slice
 
struct  wildcard
 

Public Types

using node = std::variant<root, current, wildcard, descend, names, indices, slice>
 
using container_type = std::vector<node>
 
using value_type = typename container_type::value_type
 
using iterator = typename container_type::iterator
 
using const_iterator = typename container_type::const_iterator
 

Public Member Functions

template<std::input_iterator It, std::sentinel_for< It > ItEnd>
constexpr jsonpath (It it, ItEnd last)
 
constexpr jsonpath (std::string_view rhs)
 
constexpr bool empty () const noexcept
 
constexpr bool is_singular () const noexcept
 The json-path will result in zero or one match.
 
constexpr std::size_t size () const noexcept
 
constexpr iterator begin () noexcept
 
constexpr const_iterator begin () const noexcept
 
constexpr const_iterator cbegin () const noexcept
 
constexpr iterator end () noexcept
 
constexpr const_iterator end () const noexcept
 
constexpr const_iterator cend () const noexcept
 

Friends

constexpr friend std::string to_string (jsonpath const &path) noexcept
 

Member Function Documentation

◆ is_singular()

constexpr bool hi::v1::jsonpath::is_singular ( ) const
inlineconstexprnoexcept

The json-path will result in zero or one match.


The documentation for this class was generated from the following file: