![]() |
Home | Libraries | People | FAQ | More |
See also: connect
function reference.
The connect function
is the fundamental connection-creating mechanism of the library. Given a
producer p
and consumer c
supported by the library,
connect(p, c);
will create a connection between the two. The examples in this documentation typically use operators to create connections. The operators use the connect function directly, and can be replaced by invocations of connect if preferred.
The support for various types of components that are supported by connect is currently divided in the following files:
#include <boost/signal_network/connection/signal.hpp>
will add support for boost::signal
as a producer, and function objects for which boost::result_of
is defined as consumers.
#include <boost/signal_network/connection/slot_selector.hpp>
will add support for slot_selector objects as signal consumers. In addition, they can be used as signal producers if the underlying object is a signal producer.
#include <boost/signal_network/connection/slot_selector_map.hpp>
will add support for fusion maps from signatures to slot_selector objects (and perhaps to any signal consumer, not tested yet) as signal consumers. This can be used to pack multiple slots of an object together, and then make connections based on the appropriate signature (see the send_slot function of storage as an example). In addition, fusion maps can be used as signal producers if the underlying object of the front element is a signal producer.
| Copyright © 2007 Stjepan Rajko |