$search
Generally not for outside use. Adapts a function parameter type into the message type, event type and parameter. Allows you to retrieve a parameter type from an event type. More...
#include <parameter_adapter.h>
Public Types | |
typedef ros::MessageEvent < Message const > | Event |
typedef boost::remove_reference < typename boost::remove_const < M >::type >::type | Message |
typedef M | Parameter |
Static Public Member Functions | |
static Parameter | getParameter (const Event &event) |
Static Public Attributes | |
static const bool | is_const = true |
Generally not for outside use. Adapts a function parameter type into the message type, event type and parameter. Allows you to retrieve a parameter type from an event type.
ParameterAdapter is generally only useful for outside use when implementing things that require message callbacks (such as the message_filters package)and you would like to support all the roscpp message parameter types
The ParameterAdapter is templated on the callback parameter type (not the bare message type), and provides 3 things:
ParameterAdapter is specialized to allow callbacks of any of the forms:
void callback(const boost::shared_ptr<M const>&); void callback(const boost::shared_ptr<M>&); void callback(boost::shared_ptr<M const>); void callback(boost::shared_ptr<M>); void callback(const M&); void callback(M); void callback(const MessageEvent<M const>&); void callback(const MessageEvent<M>&);
Definition at line 69 of file parameter_adapter.h.
typedef ros::MessageEvent<Message const> ros::ParameterAdapter< M >::Event |
Definition at line 72 of file parameter_adapter.h.
typedef boost::remove_reference<typename boost::remove_const<M>::type>::type ros::ParameterAdapter< M >::Message |
Definition at line 71 of file parameter_adapter.h.
typedef M ros::ParameterAdapter< M >::Parameter |
Definition at line 73 of file parameter_adapter.h.
static Parameter ros::ParameterAdapter< M >::getParameter | ( | const Event & | event | ) | [inline, static] |
Definition at line 76 of file parameter_adapter.h.
const bool ros::ParameterAdapter< M >::is_const = true [static] |
Definition at line 74 of file parameter_adapter.h.