Skip to content

Class zmbt::JsonTraverse

ClassList > zmbt > JsonTraverse

Boost JSON value depth-first traverser.

  • #include <json_traverse.hpp>

Public Types

Type Name
typedef std::function< bool(boost::json::value const &, std::string const)> visitor_fn

Public Functions

Type Name
JsonTraverse (visitor_fn visit)
Construct JSON traverser.
void operator() (boost::json::value const & v) const

Public Types Documentation

typedef visitor_fn

typedef std::function<bool(boost::json::value const&, std::string const)> zmbt::JsonTraverse::visitor_fn;

Public Functions Documentation

function JsonTraverse

Construct JSON traverser.

inline zmbt::JsonTraverse::JsonTraverse (
    visitor_fn visit
) 

Parameters:

  • visit JSON node visitor: (node, JSON pointer, output) -> node traverse stop

function operator()

inline void zmbt::JsonTraverse::operator() (
    boost::json::value const & v
) const


The documentation for this class was generated from the following file zmbt-framework/zmbt-framework/backends/cxx/include/zmbt/core/json_traverse.hpp