virthttp  0.0
libvirt http interface
Public Member Functions | List of all members
JDispatch Class Reference

#include <dispatch.hpp>

Public Member Functions

template<class JDV >
constexpr JDispatch (const JDV &jdv) noexcept
 
template<class Hdl >
auto operator() (const rapidjson::Value &jval, Hdl &&hdl) const
 

Detailed Description

De-templatized reference to a JDispatchVals so it can be stored in an array

Constructor & Destructor Documentation

template<class JDV >
constexpr JDispatch::JDispatch ( const JDV &  jdv)
inlineexplicitnoexcept

Constructs a JDispatch from a JDispatcherVals

Template Parameters
JDV(deduced)
Parameters
[in]jdvJDispatcherVals object to use as a source

Member Function Documentation

template<class Hdl >
auto JDispatch::operator() ( const rapidjson::Value &  jval,
Hdl &&  hdl 
) const
inline

Dispatching-closure factory

Template Parameters
Hdl(deduced)
Parameters
[in]jvalthe JSON input value
[in]hdlthe callable which will process jval if the JSON value type is allowed
Returns
a closure of signature void(HandlerContext&)

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