On this page
article
peary::utils::dispatcher_impl
peary::utils::dispatcher_impl
Classes
| Name | |
|---|---|
| struct | peary::utils::dispatcher_impl::NativeInterfaceWrappper Wrapper for native interface functions that return a value. |
| struct | peary::utils::dispatcher_impl::NativeInterfaceWrappper< void, Args… > Wrapper for native interface functions that do not return a value. |
Functions
| Name | |
|---|---|
| template <typename T > T | str_decode(const std::string & str)Decode a string to a value of type T. |
| std::string | str_decode(const std::string & str)Decode a string to a value of type std::string. |
| template <typename T > std::string | str_encode(const T & value)Encode a value of type T to a string. |
| template <typename R ,typename… Args> Dispatcher::NativeInterface | make_native_interface(std::function< R(Args…)> && function)Create a native interface from a function. |
Functions Documentation
function str_decode
template <typename T >
inline T str_decode(
const std::string & str
)
Decode a string to a value of type T.
Parameters:
- str The string to be decoded
Template Parameters:
- T The type to which the string should be decoded
function str_decode
inline std::string str_decode(
const std::string & str
)
Decode a string to a value of type std::string.
Parameters:
- str The string to be decoded
function str_encode
template <typename T >
inline std::string str_encode(
const T & value
)
Encode a value of type T to a string.
Parameters:
- value The value to be encoded
Template Parameters:
- T The type of the value to be encoded
function make_native_interface
template <typename R ,
typename... Args>
inline Dispatcher::NativeInterface make_native_interface(
std::function< R(Args...)> && function
)
Create a native interface from a function.
Parameters:
- function The function to be wrapped
Template Parameters:
- R The return type of the function
- Args The types of the arguments that the function takes
Updated on 2025-11-14 at 11:31:23 +0100