WeakBind.hh File Reference
#include <boost/shared_ptr.hpp>
#include <boost/bind.hpp>

Go to the source code of this file.

Classes

class  WeakBinder< Func, T >
 Function object wrapper used by common::weakBind. More...
 

Namespaces

 gazebo
 Forward declarations for the common classes.
 
 gazebo::common
 Common namespace.
 
 gazebo::common::details
 

Functions

template<typename Func , typename T >
WeakBinder< Func, T > makeWeakBinder (Func func, boost::weak_ptr< T > ptr)
 
template<typename T , typename Func , typename... Args>
auto weakBind (Func _func, boost::shared_ptr< T > _ptr, Args... _args) -> decltype(details::makeWeakBinder(boost::bind(_func, _ptr.get(), _args...), boost::weak_ptr< T >(_ptr)))