3 * Author: Lukas Krejci <krejci.l@centrum.cz>, (C) 2008
4 * Copyright: See COPYING file that comes with this distribution
7 #ifndef BEACON_connection_impl_H
8 #define BEACON_connection_impl_H
10 #include <beacon/config.hpp>
11 #include <beacon/intrusive_ptr.hpp>
12 #include <beacon/detail/connection_impl_base.hpp>
13 #include <beacon/detail/signal_base.hpp>
19 class connection_impl
: public connection_impl_base
{
20 friend class signal_base
;
22 bool connected() const {
26 #ifdef ENABLE_CONNECTION_BLOCKING
27 bool blocked() const {
43 _signal
->do_disconnect(_position
);
49 connection_impl(signal_base
* signal
, signal_base::slot_list_type::iterator pos
) :
53 #ifdef ENABLE_CONNECTION_BLOCKING
58 signal_base
* _signal
;
59 signal_base::slot_list_type::iterator _position
;
62 #ifdef ENABLE_CONNECTION_BLOCKING