#include <safe_function.hpp>
|
| using | FuncType = std::function<R(Args...)> |
template<typename R, typename... Args>
class rav::SafeFunction< R(Args...)>
Definition at line 39 of file safe_function.hpp.
◆ FuncType
template<typename R, typename... Args>
◆ SafeFunction() [1/2]
template<typename R, typename... Args>
◆ SafeFunction() [2/2]
template<typename R, typename... Args>
Constructs a callback function with the given function.
- Parameters
-
| f | The function to be called. |
Definition at line 52 of file safe_function.hpp.
◆ operator()()
template<typename R, typename... Args>
Calls the stored function with the given arguments.
- Parameters
-
| args | The arguments to be passed to the function. |
- Returns
- The result of the function call.
Definition at line 59 of file safe_function.hpp.
◆ operator=()
template<typename R, typename... Args>
Sets the function to be called.
- Parameters
-
| f | The function to be called. |
Definition at line 75 of file safe_function.hpp.
◆ reset()
template<typename R, typename... Args>
◆ set()
template<typename R, typename... Args>
Sets the function to be called.
- Parameters
-
| f | The function to be called. |
Definition at line 67 of file safe_function.hpp.
The documentation for this class was generated from the following file: