SMACC
Loading...
Searching...
No Matches
Public Member Functions | List of all members
smacc::utils::Bind< 1 > Struct Reference

#include <smacc_state_machine_impl.h>

Collaboration diagram for smacc::utils::Bind< 1 >:
Collaboration graph

Public Member Functions

template<typename TSmaccSignal , typename TMemberFunctionPrototype , typename TSmaccObjectType >
boost::signals2::connection bindaux (TSmaccSignal &signal, TMemberFunctionPrototype callback, TSmaccObjectType *object, std::shared_ptr< CallbackCounterSemaphore > callbackCounter)
 

Detailed Description

Definition at line 256 of file smacc_state_machine_impl.h.

Member Function Documentation

◆ bindaux()

template<typename TSmaccSignal , typename TMemberFunctionPrototype , typename TSmaccObjectType >
boost::signals2::connection smacc::utils::Bind< 1 >::bindaux ( TSmaccSignal &  signal,
TMemberFunctionPrototype  callback,
TSmaccObjectType *  object,
std::shared_ptr< CallbackCounterSemaphore callbackCounter 
)
inline

Definition at line 259 of file smacc_state_machine_impl.h.

260 {
261 return signal.connect(
262
263 [=]()
264 {
265 if(callbackCounter == nullptr)
266 {
267 (object->*callback)();
268 }
269 else if (callbackCounter->acquire())
270 {
271 (object->*callback)();
272 callbackCounter->release();
273 }});
274 }

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