#include <boost/function.hpp>
#include <boost/bind.hpp>
#include <boost/type_traits/is_base_of.hpp>
#include <boost/type_traits/remove_pointer.hpp>
#include <boost/weak_ptr.hpp>
#include <boost/function_types/result_type.hpp>
Go to the source code of this file.
|
| void | qi::detail::throwPointerLockException () |
| |
| template<typename F , typename ARG0 > |
| boost::function< F > | qi::track (const boost::function< F > &f, const ARG0 &arg0) |
| | Wrap given function f with a tracking check on arg0, which must be a weak pointer or a Trackable instance. More...
|
| |
| template<typename F , typename ARG0 > |
| boost::function< F > | qi::trackWithFallback (boost::function< void()> onFail, const boost::function< F > &f, const ARG0 &arg0) |
| | Wrap given function f with a tracking check on arg0, which must be a weak pointer or a Trackable instance. More...
|
| |
| template<typename F , typename ARG0 > |
| boost::function< F > | qi::trackSilent (const boost::function< F > &f, const ARG0 &arg0) |
| |
| #define _QI_DETAILS_TRACKABLE_HXX_ |
| #define genCall |
( |
|
n, |
|
|
|
ATYPEDECL, |
|
|
|
ATYPES, |
|
|
|
ADECL, |
|
|
|
AUSE, |
|
|
|
comma |
|
) |
| |
Value:
Result operator()(ADECL) \
{ \
ST s = _wptr.lock(); \
if (s) \
return _f(AUSE); \
else \
{ \
if (_onFail) \
_onFail(); \
return Result(); \
} \
}
#define QI_GEN_MAYBE_TEMPLATE_CLOSE(...)
#define QI_GEN_MAYBE_TEMPLATE_OPEN(...)
Definition at line 94 of file trackable.hxx.