Go to the documentation of this file.
35 #ifndef MESSAGE_FILTERS_SIGNAL1_H
36 #define MESSAGE_FILTERS_SIGNAL1_H
38 #include <boost/noncopyable.hpp>
44 #include <boost/bind/bind.hpp>
45 #include <boost/thread/mutex.hpp>
60 template<
typename P,
typename M>
61 class CallbackHelper1T :
public CallbackHelper1<M>
95 boost::mutex::scoped_lock lock(
mutex_);
102 boost::mutex::scoped_lock lock(
mutex_);
103 typename V_CallbackHelper1::iterator it = std::find(
callbacks_.begin(),
callbacks_.end(), helper);
113 bool nonconst_force_copy =
callbacks_.size() > 1;
114 typename V_CallbackHelper1::iterator it =
callbacks_.begin();
115 typename V_CallbackHelper1::iterator end =
callbacks_.end();
116 for (; it != end; ++it)
119 helper->call(event, nonconst_force_copy);
130 #endif // MESSAGE_FILTERS_SIGNAL1_H
ros::ParameterAdapter< P > Adapter
CallbackHelper1T(const Callback &cb)
virtual void call(const ros::MessageEvent< M const > &event, bool nonconst_force_copy)
void call(const ros::MessageEvent< M const > &event)
boost::function< void(typename Adapter::Parameter)> Callback
virtual void call(const ros::MessageEvent< M const > &event, bool nonconst_need_copy)=0
boost::shared_ptr< CallbackHelper1< M > > Ptr
boost::shared_ptr< CallbackHelper1< M > > CallbackHelper1Ptr
std::vector< CallbackHelper1Ptr > V_CallbackHelper1
CallbackHelper1Ptr addCallback(const boost::function< void(P)> &callback)
static Parameter getParameter(const Event &event)
V_CallbackHelper1 callbacks_
void removeCallback(const CallbackHelper1Ptr &helper)
ros::MessageEvent< Message const > Event
virtual ~CallbackHelper1()
bool nonConstWillCopy() const
message_filters
Author(s): Josh Faust, Vijay Pradeep, Dirk Thomas
, Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:47