libqi-api
2.0.6.8
|
#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.
Namespaces | |
namespace | qi |
qi general namespace | |
namespace | qi::detail |
Defines | |
#define | genCall(n, ATYPEDECL, ATYPES, ADECL, AUSE, comma) |
Functions | |
void | qi::detail::throwPointerLockException () |
template<typename F , typename ARG0 > | |
boost::function< F > | qi::track (const boost::function< F > &f, const ARG0 &arg0) |
template<typename F , typename ARG0 > | |
boost::function< F > | qi::trackWithFallback (boost::function< void()> onFail, const boost::function< F > &f, const ARG0 &arg0) |
#define genCall | ( | n, | |
ATYPEDECL, | |||
ATYPES, | |||
ADECL, | |||
AUSE, | |||
comma | |||
) |
QI_GEN_MAYBE_TEMPLATE_OPEN(comma) \ ATYPEDECL \ QI_GEN_MAYBE_TEMPLATE_CLOSE(comma) \ Result operator()(ADECL) { \ ST s = _wptr.lock(); \ if (s) \ return _f(AUSE); \ else \ if (_onFail) \ _onFail(); \ else \ return Result(); \ }
Definition at line 94 of file trackable.hxx.