Class template multiplexer

boost::signals::multiplexer — Forwards a single signal to multiple slots, and can also be disabled to stop the flow of signals. junction is a conditional with Condition identity and Member volatile bool.

Synopsis

template<typename Signature, typename OutSignal = SIGNAL_NETWORK_DEFAULT_OUT, 
         typename SignalArgs = typename default_signal_args<Signature>::type> 
class multiplexer {
public:
  // types
  typedef boost::fusion::map< boost::fusion::pair< boost::dataflow::signals::producer< Signature >, boost::function< Signature > >, boost::fusion::pair< boost::dataflow::signals::producer< typename multiplexer::fused_signature_type >, boost::function< typename multiplexer::fused_signature_type > > > slot_map;

  // construct/copy/destruct
  multiplexer(int = 0);

  // public member functions
  void select(int) ;
  template<int N> 
    boost::dataflow::fusion_keyed_port< boost::dataflow::ports::consumer, slot_map, boost::dataflow::signals::tag > 
    slot() ;
};

Description

multiplexer public construct/copy/destruct

  1. multiplexer(int selector = 0);

    Initializes the multiplexer to forward the specified input.

multiplexer public member functions

  1. void select(int selector) ;

    Sets the multiplexer to forward the specified input.

  2. template<int N> 
      boost::dataflow::fusion_keyed_port< boost::dataflow::ports::consumer, slot_map, boost::dataflow::signals::tag > 
      slot() ;