Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: UAVCAN UAVCAN_Subscriber
MethodBinder< ObjectPtr, MemFunPtr > Class Template Reference
Use this to call member functions as callbacks in C++03 mode. More...
#include <method_binder.hpp>
Public Member Functions | |
| operator bool () const | |
| Returns true if the binder is initialized (doesn't contain null pointers). | |
| void | operator() () |
| Will raise a fatal error if either method pointer or object pointer are null. | |
| template<typename Par1 > | |
| void | operator() (Par1 &p1) |
| Will raise a fatal error if either method pointer or object pointer are null. | |
| template<typename Par1 , typename Par2 > | |
| void | operator() (Par1 &p1, Par2 &p2) |
| Will raise a fatal error if either method pointer or object pointer are null. | |
Detailed Description
template<typename ObjectPtr, typename MemFunPtr>
class uavcan::MethodBinder< ObjectPtr, MemFunPtr >
Use this to call member functions as callbacks in C++03 mode.
In C++11 or newer you don't need it because you can use std::function<>/stdbind<> instead.
Definition at line 20 of file method_binder.hpp.
Member Function Documentation
| operator bool | ( | ) | const |
Returns true if the binder is initialized (doesn't contain null pointers).
Definition at line 47 of file method_binder.hpp.
| void operator() | ( | Par1 & | p1, |
| Par2 & | p2 | ||
| ) |
Will raise a fatal error if either method pointer or object pointer are null.
Definition at line 75 of file method_binder.hpp.
| void operator() | ( | Par1 & | p1 ) |
Will raise a fatal error if either method pointer or object pointer are null.
Definition at line 65 of file method_binder.hpp.
| void operator() | ( | ) |
Will raise a fatal error if either method pointer or object pointer are null.
Definition at line 55 of file method_binder.hpp.
Generated on Tue Jul 12 2022 17:17:37 by
1.7.2