Class template counter

boost::signals::counter — Counts the number of signals passing through the component. counter is an applicator with a postincrement application and default member of type volatile int.

Synopsis

template<typename Signature, typename OutSignal = SIGNAL_NETWORK_DEFAULT_OUT, 
         typename T = int, 
         typename SignalArgs = typename default_signal_args<Signature>::type> 
class counter {
public:
  // construct/copy/destruct
  counter();

  // public member functions
  void reset() ;
  T count() const;
};

Description

counter public construct/copy/destruct

  1. counter();

    Initializes the internal counter to 0.

counter public member functions

  1. void reset() ;

    Sets the internal counter to 0.

  2. T count() const;

    Returns:

    The internal signal counter.