boost::numeric::odeint::times_iterator — ODE Iterator with given evaluation points. The value type of this iterator is the state type of the stepper.
// In header: <boost/numeric/odeint/iterator/times_iterator.hpp> template<typename Stepper, typename System, typename State, typename TimeIterator> class times_iterator { public: // construct/copy/destruct times_iterator(Stepper, System, State &, TimeIterator, TimeIterator, time_type); times_iterator(Stepper, System, State &); };
Implements an iterator representing the solution of an ODE from *t_start to *t_end evaluated at time points given by the sequence t_start to t_end. t_start and t_end are iterators representing a sequence of time points where the solution of the ODE should be evaluated. After each iteration the iterator dereferences to the state x at the next time *t_start++ until t_end is reached. This iterator can be used with Steppers, ControlledSteppers and DenseOutputSteppers and it always makes use of the all the given steppers capabilities. A for_each over such an iterator range behaves similar to the integrate_times routine.
times_iterator is a model of single-pass iterator.
The value type of this iterator is the state type of the stepper. Hence one can only access the state and not the current time.