Derive-C
|
#include <trampoline.hpp>
Public Types | |
using | FunctionLocationType = decltype(Function) |
using | FunctionPtrType = std::remove_pointer_t<FunctionLocationType> |
using | MockFunctionType = decltype(MockFunction) |
using | MockType = member_pointer_class_t<MockFunctionType> |
Public Member Functions | |
Trampoline (MockType *mock) | |
void | Disable () |
void | Enable () |
~Trampoline () |
Static Public Member Functions | |
template<typename... Args> | |
static auto | trampolineImpl (Args... args) -> decltype((std::declval< MockType * >() -> *mockFunc)(args...)) |
Static Public Attributes | |
static FunctionLocationType | func = Function |
static constexpr MockFunctionType | mockFunc = MockFunction |
static FunctionPtrType | realFunc = *func |
static MockType * | sMock = nullptr |
A utility that 'bounces' calls to a free function, to a member function of a given instance.
Definition at line 21 of file trampoline.hpp.
using Trampoline< Function, MockFunction >::FunctionLocationType = decltype(Function) |
Definition at line 23 of file trampoline.hpp.
using Trampoline< Function, MockFunction >::FunctionPtrType = std::remove_pointer_t<FunctionLocationType> |
Definition at line 24 of file trampoline.hpp.
using Trampoline< Function, MockFunction >::MockFunctionType = decltype(MockFunction) |
Definition at line 25 of file trampoline.hpp.
using Trampoline< Function, MockFunction >::MockType = member_pointer_class_t<MockFunctionType> |
Definition at line 26 of file trampoline.hpp.
|
inlineexplicit |
Definition at line 38 of file trampoline.hpp.
|
inline |
Definition at line 56 of file trampoline.hpp.
|
inline |
Definition at line 46 of file trampoline.hpp.
|
inline |
Definition at line 51 of file trampoline.hpp.
|
inlinestatic |
|
inlinestatic |
Definition at line 28 of file trampoline.hpp.
|
staticconstexpr |
Definition at line 29 of file trampoline.hpp.
|
inlinestatic |
Definition at line 30 of file trampoline.hpp.
|
inlinestatic |
Definition at line 31 of file trampoline.hpp.