|
| Callback (R(*cb)(Args...)) noexcept |
| Constructs the callback wrapper from a regular C-style function. More...
|
|
template<class T > |
| Callback (R(*cb)(T, Args...), T user) noexcept |
| Constructs the callback wrapper from a regular C-style function with a user argument bound to it. More...
|
|
template<class T > |
| Callback (T *instance, R(T::*cb)(Args...)) noexcept |
| Constructs the callback wrapper from a member function. More...
|
|
| Callback (std::function< R(Args...)> &&cb) noexcept |
| Constructs the callback wrapper by moving a std::function . More...
|
|
| Callback (const std::function< R(Args...)> &cb) noexcept |
| Constructs the callback wrapper by copying a std::function . More...
|
|
| Callback (std::shared_ptr< std::function< R(Args...)>> &&cb) noexcept |
| Constructs the callback wrapper by means of moving a shared_ptr to a std::function . More...
|
|
| Callback (const std::shared_ptr< std::function< R(Args...)>> &cb) noexcept |
| Constructs the callback wrapper by means of a copying a shared_ptr to a std::function . More...
|
|
template<class R, class... Args>
class dqcsim::wrap::Callback< R, Args >
Class template shared between all callback functions.
This class is specialized for all the callbacks supported by DQCsim in the callback
namespace.
Definition at line 6749 of file dqcsim.
template<class R , class... Args>
template<class T >
Constructs the callback wrapper from a regular C-style function with a user argument bound to it.
Usually this would be a pointer to some shared data structure containing the user's plugin state.
- Parameters
-
cb | The C function pointer to wrap. When it is called, the first argument is always set to whatever is passed to user here. |
user | The data to pass to the first argument of cb . |
Definition at line 6841 of file dqcsim.