Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

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 = unfused, 
         typename T = volatile int, 
         typename Combiner = boost::last_value<typename boost::function_types::result_type<Signature>::type>, 
         typename Group = int, typename GroupCompare = std::less<Group> > 
class counter {
public:
  // construct/copy/destruct
  counter();

  // public member functions
  void reset() ;
  boost::remove_volatile< T >::type count() const;
};

Description

counter 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. boost::remove_volatile< T >::type count() const;

    Returns:

    The internal signal counter.

Copyright © 2007 Stjepan Rajko

PrevUpHomeNext