1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>Class template n_step_time_iterator</title> 5<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="../../../index.html" title="Chapter 1. Boost.Numeric.Odeint"> 8<link rel="up" href="../../../header/boost/numeric/odeint/iterator/n_step_time_iterator_hpp.html" title="Header <boost/numeric/odeint/iterator/n_step_time_iterator.hpp>"> 9<link rel="prev" href="../../../header/boost/numeric/odeint/iterator/n_step_time_iterator_hpp.html" title="Header <boost/numeric/odeint/iterator/n_step_time_iterator.hpp>"> 10<link rel="next" href="make_n_s_idm45875527753984.html" title="Function template make_n_step_time_iterator_begin"> 11</head> 12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 13<table cellpadding="2" width="100%"><tr> 14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../logo.jpg"></td> 15<td align="center"><a href="../../../../../../../../index.html">Home</a></td> 16<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> 17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 19<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> 20</tr></table> 21<hr> 22<div class="spirit-nav"> 23<a accesskey="p" href="../../../header/boost/numeric/odeint/iterator/n_step_time_iterator_hpp.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/numeric/odeint/iterator/n_step_time_iterator_hpp.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="make_n_s_idm45875527753984.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="refentry"> 26<a name="boost.numeric.odeint.n_step_time_iterator"></a><div class="titlepage"></div> 27<div class="refnamediv"> 28<h2><span class="refentrytitle">Class template n_step_time_iterator</span></h2> 29<p>boost::numeric::odeint::n_step_time_iterator — ODE Iterator with constant step size. The value type of this iterator is a std::pair containing state and time. </p> 30</div> 31<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> 32<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../../header/boost/numeric/odeint/iterator/n_step_time_iterator_hpp.html" title="Header <boost/numeric/odeint/iterator/n_step_time_iterator.hpp>">boost/numeric/odeint/iterator/n_step_time_iterator.hpp</a>> 33 34</span><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> Stepper<span class="special">,</span> <span class="keyword">typename</span> System<span class="special">,</span> <span class="keyword">typename</span> State<span class="special">></span> 35<span class="keyword">class</span> <a class="link" href="n_step_time_iterator.html" title="Class template n_step_time_iterator">n_step_time_iterator</a> <span class="special">{</span> 36<span class="keyword">public</span><span class="special">:</span> 37 <span class="comment">// <a class="link" href="n_step_time_iterator.html#boost.numeric.odeint.n_step_time_iteratorconstruct-copy-destruct">construct/copy/destruct</a></span> 38 <a class="link" href="n_step_time_iterator.html#idm45875527760928-bb"><span class="identifier">n_step_time_iterator</span></a><span class="special">(</span><span class="identifier">Stepper</span><span class="special">,</span> <span class="identifier">System</span><span class="special">,</span> <span class="identifier">State</span> <span class="special">&</span><span class="special">,</span> <span class="identifier">time_type</span><span class="special">,</span> <span class="identifier">time_type</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">)</span><span class="special">;</span> 39 <a class="link" href="n_step_time_iterator.html#idm45875527756512-bb"><span class="identifier">n_step_time_iterator</span></a><span class="special">(</span><span class="identifier">Stepper</span><span class="special">,</span> <span class="identifier">System</span><span class="special">,</span> <span class="identifier">State</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 40<span class="special">}</span><span class="special">;</span></pre></div> 41<div class="refsect1"> 42<a name="idm45600381158864"></a><h2>Description</h2> 43<p>Implements an iterator representing the solution of an ODE starting from t with n steps and a constant step size dt. After each iteration the iterator dereferences to a pair of state and time at the next time t+dt. This iterator can be used with Steppers 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_n_steps routine.</p> 44<p><a class="link" href="n_step_time_iterator.html" title="Class template n_step_time_iterator">n_step_time_iterator</a> is a model of single-pass iterator.</p> 45<p>The value type of this iterator is pair of state and time.</p> 46<p> 47</p> 48<div class="refsect2"> 49<a name="idm45600381156128"></a><h3>Template Parameters</h3> 50<div class="orderedlist"><ol class="orderedlist" type="1"> 51<li class="listitem"> 52<pre class="literallayout"><span class="keyword">typename</span> Stepper</pre> 53<p>The stepper type which should be used during the iteration. </p> 54</li> 55<li class="listitem"> 56<pre class="literallayout"><span class="keyword">typename</span> System</pre> 57<p>The type of the system function (ODE) which should be solved. </p> 58</li> 59<li class="listitem"> 60<pre class="literallayout"><span class="keyword">typename</span> State</pre> 61<p>The state type of the ODE. </p> 62</li> 63</ol></div> 64</div> 65<div class="refsect2"> 66<a name="idm45600381148736"></a><h3> 67<a name="boost.numeric.odeint.n_step_time_iteratorconstruct-copy-destruct"></a><code class="computeroutput">n_step_time_iterator</code> 68 public 69 construct/copy/destruct</h3> 70<div class="orderedlist"><ol class="orderedlist" type="1"> 71<li class="listitem"><pre class="literallayout"><a name="idm45875527760928-bb"></a><span class="identifier">n_step_time_iterator</span><span class="special">(</span><span class="identifier">Stepper</span> stepper<span class="special">,</span> <span class="identifier">System</span> sys<span class="special">,</span> <span class="identifier">State</span> <span class="special">&</span> s<span class="special">,</span> <span class="identifier">time_type</span> t<span class="special">,</span> 72 <span class="identifier">time_type</span> dt<span class="special">,</span> <span class="identifier">size_t</span> num_of_steps<span class="special">)</span><span class="special">;</span></pre></li> 73<li class="listitem"><pre class="literallayout"><a name="idm45875527756512-bb"></a><span class="identifier">n_step_time_iterator</span><span class="special">(</span><span class="identifier">Stepper</span> stepper<span class="special">,</span> <span class="identifier">System</span> sys<span class="special">,</span> <span class="identifier">State</span> <span class="special">&</span> s<span class="special">)</span><span class="special">;</span></pre></li> 74</ol></div> 75</div> 76</div> 77</div> 78<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 79<td align="left"></td> 80<td align="right"><div class="copyright-footer">Copyright © 2009-2015 Karsten Ahnert and Mario Mulansky<p> 81 Distributed under the Boost Software License, Version 1.0. (See accompanying 82 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) 83 </p> 84</div></td> 85</tr></table> 86<hr> 87<div class="spirit-nav"> 88<a accesskey="p" href="../../../header/boost/numeric/odeint/iterator/n_step_time_iterator_hpp.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/numeric/odeint/iterator/n_step_time_iterator_hpp.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="make_n_s_idm45875527753984.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> 89</div> 90</body> 91</html> 92