Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
message_filters::Synchronizer< Policy > Class Template Reference

#include <synchronizer.h>

Inheritance diagram for message_filters::Synchronizer< Policy >:
Inheritance graph
[legend]

Public Types

typedef Policy::Events Events
 
typedef mpl::at_c< Messages, 0 >::type M0
 
typedef mpl::at_c< Events, 0 >::type M0Event
 
typedef mpl::at_c< Messages, 1 >::type M1
 
typedef mpl::at_c< Events, 1 >::type M1Event
 
typedef mpl::at_c< Messages, 2 >::type M2
 
typedef mpl::at_c< Events, 2 >::type M2Event
 
typedef mpl::at_c< Messages, 3 >::type M3
 
typedef mpl::at_c< Events, 3 >::type M3Event
 
typedef mpl::at_c< Messages, 4 >::type M4
 
typedef mpl::at_c< Events, 4 >::type M4Event
 
typedef mpl::at_c< Messages, 5 >::type M5
 
typedef mpl::at_c< Events, 5 >::type M5Event
 
typedef mpl::at_c< Messages, 6 >::type M6
 
typedef mpl::at_c< Events, 6 >::type M6Event
 
typedef mpl::at_c< Messages, 7 >::type M7
 
typedef mpl::at_c< Events, 7 >::type M7Event
 
typedef mpl::at_c< Messages, 8 >::type M8
 
typedef mpl::at_c< Events, 8 >::type M8Event
 
typedef Policy::Messages Messages
 
typedef Policy::Signal Signal
 

Public Member Functions

template<int i>
void add (const boost::shared_ptr< typename mpl::at_c< Messages, i >::type const > &msg)
 
template<class F0 , class F1 >
void connectInput (F0 &f0, F1 &f1)
 
template<class F0 , class F1 , class F2 >
void connectInput (F0 &f0, F1 &f1, F2 &f2)
 
template<class F0 , class F1 , class F2 , class F3 >
void connectInput (F0 &f0, F1 &f1, F2 &f2, F3 &f3)
 
template<class F0 , class F1 , class F2 , class F3 , class F4 >
void connectInput (F0 &f0, F1 &f1, F2 &f2, F3 &f3, F4 &f4)
 
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 >
void connectInput (F0 &f0, F1 &f1, F2 &f2, F3 &f3, F4 &f4, F5 &f5)
 
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 , class F6 >
void connectInput (F0 &f0, F1 &f1, F2 &f2, F3 &f3, F4 &f4, F5 &f5, F6 &f6)
 
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 , class F6 , class F7 >
void connectInput (F0 &f0, F1 &f1, F2 &f2, F3 &f3, F4 &f4, F5 &f5, F6 &f6, F7 &f7)
 
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 , class F6 , class F7 , class F8 >
void connectInput (F0 &f0, F1 &f1, F2 &f2, F3 &f3, F4 &f4, F5 &f5, F6 &f6, F7 &f7, F8 &f8)
 
const std::string & getName ()
 
Policy * getPolicy ()
 
void init ()
 
template<class C >
Connection registerCallback (C &callback)
 
template<class C >
Connection registerCallback (const C &callback)
 
template<class C , typename T >
Connection registerCallback (const C &callback, T *t)
 
template<class C , typename T >
Connection registerCallback (C &callback, T *t)
 
void setName (const std::string &name)
 
void signal (const M0Event &e0, const M1Event &e1, const M2Event &e2, const M3Event &e3, const M4Event &e4, const M5Event &e5, const M6Event &e6, const M7Event &e7, const M8Event &e8)
 
template<class F0 , class F1 >
 Synchronizer (F0 &f0, F1 &f1)
 
template<class F0 , class F1 , class F2 >
 Synchronizer (F0 &f0, F1 &f1, F2 &f2)
 
template<class F0 , class F1 , class F2 , class F3 >
 Synchronizer (F0 &f0, F1 &f1, F2 &f2, F3 &f3)
 
template<class F0 , class F1 , class F2 , class F3 , class F4 >
 Synchronizer (F0 &f0, F1 &f1, F2 &f2, F3 &f3, F4 &f4)
 
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 >
 Synchronizer (F0 &f0, F1 &f1, F2 &f2, F3 &f3, F4 &f4, F5 &f5)
 
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 , class F6 >
 Synchronizer (F0 &f0, F1 &f1, F2 &f2, F3 &f3, F4 &f4, F5 &f5, F6 &f6)
 
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 , class F6 , class F7 >
 Synchronizer (F0 &f0, F1 &f1, F2 &f2, F3 &f3, F4 &f4, F5 &f5, F6 &f6, F7 &f7)
 
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 , class F6 , class F7 , class F8 >
 Synchronizer (F0 &f0, F1 &f1, F2 &f2, F3 &f3, F4 &f4, F5 &f5, F6 &f6, F7 &f7, F8 &f8)
 
 Synchronizer ()
 
template<class F0 , class F1 >
 Synchronizer (const Policy &policy, F0 &f0, F1 &f1)
 
template<class F0 , class F1 , class F2 >
 Synchronizer (const Policy &policy, F0 &f0, F1 &f1, F2 &f2)
 
template<class F0 , class F1 , class F2 , class F3 >
 Synchronizer (const Policy &policy, F0 &f0, F1 &f1, F2 &f2, F3 &f3)
 
template<class F0 , class F1 , class F2 , class F3 , class F4 >
 Synchronizer (const Policy &policy, F0 &f0, F1 &f1, F2 &f2, F3 &f3, F4 &f4)
 
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 >
 Synchronizer (const Policy &policy, F0 &f0, F1 &f1, F2 &f2, F3 &f3, F4 &f4, F5 &f5)
 
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 , class F6 >
 Synchronizer (const Policy &policy, F0 &f0, F1 &f1, F2 &f2, F3 &f3, F4 &f4, F5 &f5, F6 &f6)
 
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 , class F6 , class F7 >
 Synchronizer (const Policy &policy, F0 &f0, F1 &f1, F2 &f2, F3 &f3, F4 &f4, F5 &f5, F6 &f6, F7 &f7)
 
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 , class F6 , class F7 , class F8 >
 Synchronizer (const Policy &policy, F0 &f0, F1 &f1, F2 &f2, F3 &f3, F4 &f4, F5 &f5, F6 &f6, F7 &f7, F8 &f8)
 
 Synchronizer (const Policy &policy)
 
 ~Synchronizer ()
 

Static Public Attributes

static const uint8_t MAX_MESSAGES = 9
 

Private Member Functions

template<int i>
void cb (const typename mpl::at_c< Events, i >::type &evt)
 
void disconnectAll ()
 

Private Attributes

Connection input_connections_ [MAX_MESSAGES]
 
std::string name_
 
uint32_t queue_size_
 
Signal signal_
 

Detailed Description

template<class Policy>
class message_filters::Synchronizer< Policy >

Definition at line 68 of file synchronizer.h.

Member Typedef Documentation

◆ Events

template<class Policy>
typedef Policy::Events message_filters::Synchronizer< Policy >::Events

Definition at line 72 of file synchronizer.h.

◆ M0

template<class Policy>
typedef mpl::at_c<Messages, 0>::type message_filters::Synchronizer< Policy >::M0

Definition at line 74 of file synchronizer.h.

◆ M0Event

template<class Policy>
typedef mpl::at_c<Events, 0>::type message_filters::Synchronizer< Policy >::M0Event

Definition at line 83 of file synchronizer.h.

◆ M1

template<class Policy>
typedef mpl::at_c<Messages, 1>::type message_filters::Synchronizer< Policy >::M1

Definition at line 75 of file synchronizer.h.

◆ M1Event

template<class Policy>
typedef mpl::at_c<Events, 1>::type message_filters::Synchronizer< Policy >::M1Event

Definition at line 84 of file synchronizer.h.

◆ M2

template<class Policy>
typedef mpl::at_c<Messages, 2>::type message_filters::Synchronizer< Policy >::M2

Definition at line 76 of file synchronizer.h.

◆ M2Event

template<class Policy>
typedef mpl::at_c<Events, 2>::type message_filters::Synchronizer< Policy >::M2Event

Definition at line 85 of file synchronizer.h.

◆ M3

template<class Policy>
typedef mpl::at_c<Messages, 3>::type message_filters::Synchronizer< Policy >::M3

Definition at line 77 of file synchronizer.h.

◆ M3Event

template<class Policy>
typedef mpl::at_c<Events, 3>::type message_filters::Synchronizer< Policy >::M3Event

Definition at line 86 of file synchronizer.h.

◆ M4

template<class Policy>
typedef mpl::at_c<Messages, 4>::type message_filters::Synchronizer< Policy >::M4

Definition at line 78 of file synchronizer.h.

◆ M4Event

template<class Policy>
typedef mpl::at_c<Events, 4>::type message_filters::Synchronizer< Policy >::M4Event

Definition at line 87 of file synchronizer.h.

◆ M5

template<class Policy>
typedef mpl::at_c<Messages, 5>::type message_filters::Synchronizer< Policy >::M5

Definition at line 79 of file synchronizer.h.

◆ M5Event

template<class Policy>
typedef mpl::at_c<Events, 5>::type message_filters::Synchronizer< Policy >::M5Event

Definition at line 88 of file synchronizer.h.

◆ M6

template<class Policy>
typedef mpl::at_c<Messages, 6>::type message_filters::Synchronizer< Policy >::M6

Definition at line 80 of file synchronizer.h.

◆ M6Event

template<class Policy>
typedef mpl::at_c<Events, 6>::type message_filters::Synchronizer< Policy >::M6Event

Definition at line 89 of file synchronizer.h.

◆ M7

template<class Policy>
typedef mpl::at_c<Messages, 7>::type message_filters::Synchronizer< Policy >::M7

Definition at line 81 of file synchronizer.h.

◆ M7Event

template<class Policy>
typedef mpl::at_c<Events, 7>::type message_filters::Synchronizer< Policy >::M7Event

Definition at line 90 of file synchronizer.h.

◆ M8

template<class Policy>
typedef mpl::at_c<Messages, 8>::type message_filters::Synchronizer< Policy >::M8

Definition at line 82 of file synchronizer.h.

◆ M8Event

template<class Policy>
typedef mpl::at_c<Events, 8>::type message_filters::Synchronizer< Policy >::M8Event

Definition at line 91 of file synchronizer.h.

◆ Messages

template<class Policy>
typedef Policy::Messages message_filters::Synchronizer< Policy >::Messages

Definition at line 71 of file synchronizer.h.

◆ Signal

template<class Policy>
typedef Policy::Signal message_filters::Synchronizer< Policy >::Signal

Definition at line 73 of file synchronizer.h.

Constructor & Destructor Documentation

◆ Synchronizer() [1/18]

template<class Policy>
template<class F0 , class F1 >
message_filters::Synchronizer< Policy >::Synchronizer ( F0 &  f0,
F1 &  f1 
)
inline

Definition at line 96 of file synchronizer.h.

◆ Synchronizer() [2/18]

template<class Policy>
template<class F0 , class F1 , class F2 >
message_filters::Synchronizer< Policy >::Synchronizer ( F0 &  f0,
F1 &  f1,
F2 &  f2 
)
inline

Definition at line 103 of file synchronizer.h.

◆ Synchronizer() [3/18]

template<class Policy>
template<class F0 , class F1 , class F2 , class F3 >
message_filters::Synchronizer< Policy >::Synchronizer ( F0 &  f0,
F1 &  f1,
F2 &  f2,
F3 &  f3 
)
inline

Definition at line 110 of file synchronizer.h.

◆ Synchronizer() [4/18]

template<class Policy>
template<class F0 , class F1 , class F2 , class F3 , class F4 >
message_filters::Synchronizer< Policy >::Synchronizer ( F0 &  f0,
F1 &  f1,
F2 &  f2,
F3 &  f3,
F4 &  f4 
)
inline

Definition at line 117 of file synchronizer.h.

◆ Synchronizer() [5/18]

template<class Policy>
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 >
message_filters::Synchronizer< Policy >::Synchronizer ( F0 &  f0,
F1 &  f1,
F2 &  f2,
F3 &  f3,
F4 &  f4,
F5 &  f5 
)
inline

Definition at line 124 of file synchronizer.h.

◆ Synchronizer() [6/18]

template<class Policy>
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 , class F6 >
message_filters::Synchronizer< Policy >::Synchronizer ( F0 &  f0,
F1 &  f1,
F2 &  f2,
F3 &  f3,
F4 &  f4,
F5 &  f5,
F6 &  f6 
)
inline

Definition at line 131 of file synchronizer.h.

◆ Synchronizer() [7/18]

template<class Policy>
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 , class F6 , class F7 >
message_filters::Synchronizer< Policy >::Synchronizer ( F0 &  f0,
F1 &  f1,
F2 &  f2,
F3 &  f3,
F4 &  f4,
F5 &  f5,
F6 &  f6,
F7 &  f7 
)
inline

Definition at line 138 of file synchronizer.h.

◆ Synchronizer() [8/18]

template<class Policy>
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 , class F6 , class F7 , class F8 >
message_filters::Synchronizer< Policy >::Synchronizer ( F0 &  f0,
F1 &  f1,
F2 &  f2,
F3 &  f3,
F4 &  f4,
F5 &  f5,
F6 &  f6,
F7 &  f7,
F8 &  f8 
)
inline

Definition at line 145 of file synchronizer.h.

◆ Synchronizer() [9/18]

template<class Policy>
message_filters::Synchronizer< Policy >::Synchronizer ( )
inline

Definition at line 151 of file synchronizer.h.

◆ Synchronizer() [10/18]

template<class Policy>
template<class F0 , class F1 >
message_filters::Synchronizer< Policy >::Synchronizer ( const Policy &  policy,
F0 &  f0,
F1 &  f1 
)
inline

Definition at line 157 of file synchronizer.h.

◆ Synchronizer() [11/18]

template<class Policy>
template<class F0 , class F1 , class F2 >
message_filters::Synchronizer< Policy >::Synchronizer ( const Policy &  policy,
F0 &  f0,
F1 &  f1,
F2 &  f2 
)
inline

Definition at line 165 of file synchronizer.h.

◆ Synchronizer() [12/18]

template<class Policy>
template<class F0 , class F1 , class F2 , class F3 >
message_filters::Synchronizer< Policy >::Synchronizer ( const Policy &  policy,
F0 &  f0,
F1 &  f1,
F2 &  f2,
F3 &  f3 
)
inline

Definition at line 173 of file synchronizer.h.

◆ Synchronizer() [13/18]

template<class Policy>
template<class F0 , class F1 , class F2 , class F3 , class F4 >
message_filters::Synchronizer< Policy >::Synchronizer ( const Policy &  policy,
F0 &  f0,
F1 &  f1,
F2 &  f2,
F3 &  f3,
F4 &  f4 
)
inline

Definition at line 181 of file synchronizer.h.

◆ Synchronizer() [14/18]

template<class Policy>
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 >
message_filters::Synchronizer< Policy >::Synchronizer ( const Policy &  policy,
F0 &  f0,
F1 &  f1,
F2 &  f2,
F3 &  f3,
F4 &  f4,
F5 &  f5 
)
inline

Definition at line 189 of file synchronizer.h.

◆ Synchronizer() [15/18]

template<class Policy>
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 , class F6 >
message_filters::Synchronizer< Policy >::Synchronizer ( const Policy &  policy,
F0 &  f0,
F1 &  f1,
F2 &  f2,
F3 &  f3,
F4 &  f4,
F5 &  f5,
F6 &  f6 
)
inline

Definition at line 197 of file synchronizer.h.

◆ Synchronizer() [16/18]

template<class Policy>
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 , class F6 , class F7 >
message_filters::Synchronizer< Policy >::Synchronizer ( const Policy &  policy,
F0 &  f0,
F1 &  f1,
F2 &  f2,
F3 &  f3,
F4 &  f4,
F5 &  f5,
F6 &  f6,
F7 &  f7 
)
inline

Definition at line 205 of file synchronizer.h.

◆ Synchronizer() [17/18]

template<class Policy>
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 , class F6 , class F7 , class F8 >
message_filters::Synchronizer< Policy >::Synchronizer ( const Policy &  policy,
F0 &  f0,
F1 &  f1,
F2 &  f2,
F3 &  f3,
F4 &  f4,
F5 &  f5,
F6 &  f6,
F7 &  f7,
F8 &  f8 
)
inline

Definition at line 213 of file synchronizer.h.

◆ Synchronizer() [18/18]

template<class Policy>
message_filters::Synchronizer< Policy >::Synchronizer ( const Policy &  policy)
inline

Definition at line 220 of file synchronizer.h.

◆ ~Synchronizer()

template<class Policy>
message_filters::Synchronizer< Policy >::~Synchronizer ( )
inline

Definition at line 226 of file synchronizer.h.

Member Function Documentation

◆ add()

template<class Policy>
template<int i>
void message_filters::Synchronizer< Policy >::add ( const boost::shared_ptr< typename mpl::at_c< Messages, i >::type const > &  msg)
inline

Definition at line 340 of file synchronizer.h.

◆ cb()

template<class Policy>
template<int i>
void message_filters::Synchronizer< Policy >::cb ( const typename mpl::at_c< Events, i >::type &  evt)
inlineprivate

Definition at line 356 of file synchronizer.h.

◆ connectInput() [1/8]

template<class Policy>
template<class F0 , class F1 >
void message_filters::Synchronizer< Policy >::connectInput ( F0 &  f0,
F1 &  f1 
)
inline

Definition at line 237 of file synchronizer.h.

◆ connectInput() [2/8]

template<class Policy>
template<class F0 , class F1 , class F2 >
void message_filters::Synchronizer< Policy >::connectInput ( F0 &  f0,
F1 &  f1,
F2 &  f2 
)
inline

Definition at line 244 of file synchronizer.h.

◆ connectInput() [3/8]

template<class Policy>
template<class F0 , class F1 , class F2 , class F3 >
void message_filters::Synchronizer< Policy >::connectInput ( F0 &  f0,
F1 &  f1,
F2 &  f2,
F3 &  f3 
)
inline

Definition at line 251 of file synchronizer.h.

◆ connectInput() [4/8]

template<class Policy>
template<class F0 , class F1 , class F2 , class F3 , class F4 >
void message_filters::Synchronizer< Policy >::connectInput ( F0 &  f0,
F1 &  f1,
F2 &  f2,
F3 &  f3,
F4 &  f4 
)
inline

Definition at line 258 of file synchronizer.h.

◆ connectInput() [5/8]

template<class Policy>
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 >
void message_filters::Synchronizer< Policy >::connectInput ( F0 &  f0,
F1 &  f1,
F2 &  f2,
F3 &  f3,
F4 &  f4,
F5 &  f5 
)
inline

Definition at line 265 of file synchronizer.h.

◆ connectInput() [6/8]

template<class Policy>
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 , class F6 >
void message_filters::Synchronizer< Policy >::connectInput ( F0 &  f0,
F1 &  f1,
F2 &  f2,
F3 &  f3,
F4 &  f4,
F5 &  f5,
F6 &  f6 
)
inline

Definition at line 272 of file synchronizer.h.

◆ connectInput() [7/8]

template<class Policy>
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 , class F6 , class F7 >
void message_filters::Synchronizer< Policy >::connectInput ( F0 &  f0,
F1 &  f1,
F2 &  f2,
F3 &  f3,
F4 &  f4,
F5 &  f5,
F6 &  f6,
F7 &  f7 
)
inline

Definition at line 279 of file synchronizer.h.

◆ connectInput() [8/8]

template<class Policy>
template<class F0 , class F1 , class F2 , class F3 , class F4 , class F5 , class F6 , class F7 , class F8 >
void message_filters::Synchronizer< Policy >::connectInput ( F0 &  f0,
F1 &  f1,
F2 &  f2,
F3 &  f3,
F4 &  f4,
F5 &  f5,
F6 &  f6,
F7 &  f7,
F8 &  f8 
)
inline

Definition at line 286 of file synchronizer.h.

◆ disconnectAll()

template<class Policy>
void message_filters::Synchronizer< Policy >::disconnectAll ( )
inlineprivate

Definition at line 347 of file synchronizer.h.

◆ getName()

template<class Policy>
const std::string& message_filters::Synchronizer< Policy >::getName ( )
inline

Definition at line 326 of file synchronizer.h.

◆ getPolicy()

template<class Policy>
Policy* message_filters::Synchronizer< Policy >::getPolicy ( )
inline

Definition at line 335 of file synchronizer.h.

◆ init()

template<class Policy>
void message_filters::Synchronizer< Policy >::init ( )
inline

Definition at line 231 of file synchronizer.h.

◆ registerCallback() [1/4]

template<class Policy>
template<class C >
Connection message_filters::Synchronizer< Policy >::registerCallback ( C &  callback)
inline

Definition at line 302 of file synchronizer.h.

◆ registerCallback() [2/4]

template<class Policy>
template<class C >
Connection message_filters::Synchronizer< Policy >::registerCallback ( const C &  callback)
inline

Definition at line 308 of file synchronizer.h.

◆ registerCallback() [3/4]

template<class Policy>
template<class C , typename T >
Connection message_filters::Synchronizer< Policy >::registerCallback ( const C &  callback,
T *  t 
)
inline

Definition at line 314 of file synchronizer.h.

◆ registerCallback() [4/4]

template<class Policy>
template<class C , typename T >
Connection message_filters::Synchronizer< Policy >::registerCallback ( C &  callback,
T *  t 
)
inline

Definition at line 320 of file synchronizer.h.

◆ setName()

template<class Policy>
void message_filters::Synchronizer< Policy >::setName ( const std::string &  name)
inline

Definition at line 325 of file synchronizer.h.

◆ signal()

template<class Policy>
void message_filters::Synchronizer< Policy >::signal ( const M0Event e0,
const M1Event e1,
const M2Event e2,
const M3Event e3,
const M4Event e4,
const M5Event e5,
const M6Event e6,
const M7Event e7,
const M8Event e8 
)
inline

Definition at line 329 of file synchronizer.h.

Member Data Documentation

◆ input_connections_

template<class Policy>
Connection message_filters::Synchronizer< Policy >::input_connections_[MAX_MESSAGES]
private

Definition at line 365 of file synchronizer.h.

◆ MAX_MESSAGES

template<class Policy>
const uint8_t message_filters::Synchronizer< Policy >::MAX_MESSAGES = 9
static

Definition at line 93 of file synchronizer.h.

◆ name_

template<class Policy>
std::string message_filters::Synchronizer< Policy >::name_
private

Definition at line 367 of file synchronizer.h.

◆ queue_size_

template<class Policy>
uint32_t message_filters::Synchronizer< Policy >::queue_size_
private

Definition at line 361 of file synchronizer.h.

◆ signal_

template<class Policy>
Signal message_filters::Synchronizer< Policy >::signal_
private

Definition at line 363 of file synchronizer.h.


The documentation for this class was generated from the following file:


message_filters
Author(s): Josh Faust, Vijay Pradeep, Dirk Thomas
autogenerated on Mon Feb 28 2022 23:33:49