On this page
article
peary::utils::dispatcher_impl::NativeInterfaceWrappper< void, Args... >
peary::utils::dispatcher_impl::NativeInterfaceWrappper< void, Args… >
Wrapper for native interface functions that do not return a value. More…
#include <peary/utils/dispatcher.hpp>
Public Functions
| Name | |
|---|---|
| std::string | operator()(const std::vector< std::string > & args)Call the wrapped function with decoded arguments and return an empty string. |
| template <std::size_t… I> std::string | decode_and_call(const std::vector< std::string > & args, std::index_sequence< I… > )Decode the arguments and call the wrapped function. |
Public Attributes
| Name | |
|---|---|
| std::function< void(Args…)> | func |
Detailed Description
template <typename... Args>
struct peary::utils::dispatcher_impl::NativeInterfaceWrappper< void, Args... >;
Wrapper for native interface functions that do not return a value.
Template Parameters:
- Args The types of the arguments that the function takes
Public Functions Documentation
function operator()
inline std::string operator()(
const std::vector< std::string > & args
)
Call the wrapped function with decoded arguments and return an empty string.
Parameters:
- args The arguments to be passed to the function, encoded as strings
function decode_and_call
template <std::size_t... I>
inline std::string decode_and_call(
const std::vector< std::string > & args,
std::index_sequence< I... >
)
Decode the arguments and call the wrapped function.
Parameters:
- args The arguments to be passed to the function, encoded as strings
Public Attributes Documentation
variable func
std::function< void(Args...)> func;
Updated on 2026-01-16 at 00:29:06 +0100