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 , typename T >
Connection registerCallback (C &callback, T *t)
 
template<class C >
Connection registerCallback (const C &callback)
 
template<class C , typename T >
Connection registerCallback (const 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)
 
 Synchronizer ()
 
 Synchronizer (const Policy &policy)
 
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)
 
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 ()
 

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 100 of file synchronizer.h.

Member Typedef Documentation

◆ Events

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

Definition at line 136 of file synchronizer.h.

◆ M0

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

Definition at line 138 of file synchronizer.h.

◆ M0Event

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

Definition at line 147 of file synchronizer.h.

◆ M1

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

Definition at line 139 of file synchronizer.h.

◆ M1Event

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

Definition at line 148 of file synchronizer.h.

◆ M2

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

Definition at line 140 of file synchronizer.h.

◆ M2Event

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

Definition at line 149 of file synchronizer.h.

◆ M3

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

Definition at line 141 of file synchronizer.h.

◆ M3Event

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

Definition at line 150 of file synchronizer.h.

◆ M4

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

Definition at line 142 of file synchronizer.h.

◆ M4Event

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

Definition at line 151 of file synchronizer.h.

◆ M5

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

Definition at line 143 of file synchronizer.h.

◆ M5Event

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

Definition at line 152 of file synchronizer.h.

◆ M6

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

Definition at line 144 of file synchronizer.h.

◆ M6Event

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

Definition at line 153 of file synchronizer.h.

◆ M7

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

Definition at line 145 of file synchronizer.h.

◆ M7Event

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

Definition at line 154 of file synchronizer.h.

◆ M8

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

Definition at line 146 of file synchronizer.h.

◆ M8Event

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

Definition at line 155 of file synchronizer.h.

◆ Messages

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

Definition at line 135 of file synchronizer.h.

◆ Signal

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

Definition at line 137 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 160 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 167 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 174 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 181 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 188 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 195 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 202 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 209 of file synchronizer.h.

◆ Synchronizer() [9/18]

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

Definition at line 215 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 221 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 229 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 237 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 245 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 253 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 261 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 269 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 277 of file synchronizer.h.

◆ Synchronizer() [18/18]

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

Definition at line 284 of file synchronizer.h.

◆ ~Synchronizer()

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

Definition at line 290 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 404 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 420 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 301 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 308 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 315 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 322 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 329 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 336 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 343 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 350 of file synchronizer.h.

◆ disconnectAll()

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

Definition at line 411 of file synchronizer.h.

◆ getName()

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

Definition at line 390 of file synchronizer.h.

◆ getPolicy()

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

Definition at line 399 of file synchronizer.h.

◆ init()

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

Definition at line 295 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 366 of file synchronizer.h.

◆ registerCallback() [2/4]

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

Definition at line 384 of file synchronizer.h.

◆ registerCallback() [3/4]

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

Definition at line 372 of file synchronizer.h.

◆ registerCallback() [4/4]

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

Definition at line 378 of file synchronizer.h.

◆ setName()

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

Definition at line 389 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 393 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 429 of file synchronizer.h.

◆ MAX_MESSAGES

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

Definition at line 157 of file synchronizer.h.

◆ name_

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

Definition at line 431 of file synchronizer.h.

◆ queue_size_

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

Definition at line 425 of file synchronizer.h.

◆ signal_

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

Definition at line 427 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 Sat Oct 17 2020 19:28:52