Chris@16: /* Chris@16: [auto_generated] Chris@16: boost/numeric/odeint/integrate/observer_collection.hpp Chris@16: Chris@16: [begin_description] Chris@16: Collection of observers, which are all called during the evolution of the ODE. Chris@16: [end_description] Chris@16: Chris@101: Copyright 2011-2012 Karsten Ahnert Chris@101: Copyright 2011-2012 Mario Mulansky Chris@16: Chris@16: Distributed under the Boost Software License, Version 1.0. Chris@16: (See accompanying file LICENSE_1_0.txt or Chris@16: copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: */ Chris@16: Chris@16: Chris@16: #ifndef BOOST_NUMERIC_ODEINT_INTEGRATE_OBSERVER_COLLECTION_HPP_INCLUDED Chris@16: #define BOOST_NUMERIC_ODEINT_INTEGRATE_OBSERVER_COLLECTION_HPP_INCLUDED Chris@16: Chris@16: #include Chris@16: Chris@16: #include Chris@16: Chris@16: namespace boost { Chris@16: namespace numeric { Chris@16: namespace odeint { Chris@16: Chris@16: template< class State , class Time > Chris@16: class observer_collection Chris@16: { Chris@16: public: Chris@16: Chris@16: typedef boost::function< void( const State& , const Time& ) > observer_type; Chris@16: typedef std::vector< observer_type > collection_type; Chris@16: Chris@16: void operator()( const State& x , Time t ) Chris@16: { Chris@16: for( size_t i=0 ; i