|
MPD
0.20.15
|
#include <type_traits>#include <utility>Go to the source code of this file.
Namespaces | |
| BindMethodDetail | |
Macros | |
| #define | BIND_METHOD(instance, method) |
| Shortcut macro which takes an instance and a method pointer and constructs a BoundMethod instance. More... | |
| #define | BIND_THIS_METHOD(method) BIND_METHOD(*this, &std::remove_reference<decltype(*this)>::type::method) |
| Shortcut wrapper for BIND_METHOD() which assumes "*this" is the instance to be bound. More... | |
Functions | |
| template<typename T , typename S , typename MethodWithSignature< T, S >::method_pointer method> | |
| MethodWrapperWithSignature< S >::function_pointer | BindMethodDetail::MakeBindMethodWrapper () |
| template<typename T , typename S , typename BindMethodDetail::MethodWithSignature< T, S >::method_pointer method> | |
| constexpr BoundMethod< S > | BindMethod (T &_instance) |
| Construct a BoundMethod instance. More... | |
| #define BIND_METHOD | ( | instance, | |
| method | |||
| ) |
Shortcut macro which takes an instance and a method pointer and constructs a BoundMethod instance.
Definition at line 198 of file BindMethod.hxx.
| #define BIND_THIS_METHOD | ( | method | ) | BIND_METHOD(*this, &std::remove_reference<decltype(*this)>::type::method) |
Shortcut wrapper for BIND_METHOD() which assumes "*this" is the instance to be bound.
Definition at line 207 of file BindMethod.hxx.
| constexpr BoundMethod<S> BindMethod | ( | T & | _instance | ) |
Construct a BoundMethod instance.
| T | the containing class |
| S | the plain function signature type |
| method | the method pointer |
| instance | the instance of #T to be bound |
Definition at line 188 of file BindMethod.hxx.
1.8.14