Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template observer_collection

boost::numeric::odeint::observer_collection

Synopsis

// In header: <boost/numeric/odeint/integrate/observer_collection.hpp>

template<typename State, typename Time> 
class observer_collection {
public:
  // types
  typedef boost::function< void(const State &, const Time &) > observer_type;  
  typedef std::vector< observer_type >                         collection_type;

  // public member functions
  void operator()(const State &, Time);
  collection_type & observers(void);
  const collection_type & observers(void) const;
};

Description

observer_collection public member functions

  1. void operator()(const State & x, Time t);
  2. collection_type & observers(void);
  3. const collection_type & observers(void) const;

PrevUpHomeNext