33 #ifndef DART_COMMON_DETAIL_CONNECTIONBODY_HPP_
34 #define DART_COMMON_DETAIL_CONNECTIONBODY_HPP_
59 template <
typename SignalType>
62 public std::enable_shared_from_this<ConnectionBody<SignalType>>
65 using SlotType =
typename SignalType::SlotType;
94 template <
typename SignalType>
96 SignalType& signal,
const SlotType& _slot)
103 template <
typename SignalType>
111 template <
typename SignalType>
118 template <
typename SignalType>
121 mSignal.disconnect(this->shared_from_this());
125 template <
typename SignalType>
133 template <
typename T>
138 template <
typename InputIterator>
139 static T
process(InputIterator first, InputIterator last)
class ConnectionBodyBase
Definition: ConnectionBody.hpp:46
virtual ~ConnectionBodyBase()
Destructor.
Definition: ConnectionBody.cpp:42
virtual void disconnect()=0
Disconnect.
ConnectionBodyBase()=default
Constructor.
class ConnectionBody
Definition: ConnectionBody.hpp:63
virtual ~ConnectionBody()
Destructor.
Definition: ConnectionBody.hpp:112
SlotType mSlot
Slot.
Definition: ConnectionBody.hpp:90
typename SignalType::SlotType SlotType
Definition: ConnectionBody.hpp:65
ConnectionBody(SignalType &signal, const SlotType &_slot)
Constructor given slot.
Definition: ConnectionBody.hpp:95
const SlotType & getSlot() const
Get slot.
Definition: ConnectionBody.hpp:127
SignalType & mSignal
Signal of this connection.
Definition: ConnectionBody.hpp:84
void disconnect() override
Disconnect.
Definition: ConnectionBody.hpp:119
Definition: BulletCollisionDetector.cpp:65
Definition: SharedLibraryManager.hpp:46
DefaultCombiner – return the last result.
Definition: ConnectionBody.hpp:135
static T process(InputIterator first, InputIterator last)
Definition: ConnectionBody.hpp:139
T result_type
Definition: ConnectionBody.hpp:136