• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Class template times_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/times_time_iterator_hpp.html" title="Header &lt;boost/numeric/odeint/iterator/times_time_iterator.hpp&gt;">
9<link rel="prev" href="../../../header/boost/numeric/odeint/iterator/times_time_iterator_hpp.html" title="Header &lt;boost/numeric/odeint/iterator/times_time_iterator.hpp&gt;">
10<link rel="next" href="make_tim_idm45875527643824.html" title="Function template make_times_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/times_time_iterator_hpp.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/numeric/odeint/iterator/times_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_tim_idm45875527643824.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="refentry">
26<a name="boost.numeric.odeint.times_time_iterator"></a><div class="titlepage"></div>
27<div class="refnamediv">
28<h2><span class="refentrytitle">Class template times_time_iterator</span></h2>
29<p>boost::numeric::odeint::times_time_iterator — ODE Iterator with given evaluation points. 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: &lt;<a class="link" href="../../../header/boost/numeric/odeint/iterator/times_time_iterator_hpp.html" title="Header &lt;boost/numeric/odeint/iterator/times_time_iterator.hpp&gt;">boost/numeric/odeint/iterator/times_time_iterator.hpp</a>&gt;
33
34</span><span class="keyword">template</span><span class="special">&lt;</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">typename</span> TimeIterator<span class="special">&gt;</span>
36<span class="keyword">class</span> <a class="link" href="times_time_iterator.html" title="Class template times_time_iterator">times_time_iterator</a> <span class="special">{</span>
37<span class="keyword">public</span><span class="special">:</span>
38  <span class="comment">// <a class="link" href="times_time_iterator.html#boost.numeric.odeint.times_time_iteratorconstruct-copy-destruct">construct/copy/destruct</a></span>
39  <a class="link" href="times_time_iterator.html#idm45875527650768-bb"><span class="identifier">times_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">&amp;</span><span class="special">,</span> <span class="identifier">TimeIterator</span><span class="special">,</span> <span class="identifier">TimeIterator</span><span class="special">,</span>
40                      <span class="identifier">time_type</span><span class="special">)</span><span class="special">;</span>
41  <a class="link" href="times_time_iterator.html#idm45875527646352-bb"><span class="identifier">times_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">&amp;</span><span class="special">)</span><span class="special">;</span>
42<span class="special">}</span><span class="special">;</span></pre></div>
43<div class="refsect1">
44<a name="idm45600380543856"></a><h2>Description</h2>
45<p>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 a pair with the state and the time at the next evaluation point *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.</p>
46<p><a class="link" href="times_time_iterator.html" title="Class template times_time_iterator">times_time_iterator</a> is a model of single-pass iterator.</p>
47<p>The value type of this iterator is a pair of state and time type.</p>
48<p>
49</p>
50<div class="refsect2">
51<a name="idm45600380540896"></a><h3>Template Parameters</h3>
52<div class="orderedlist"><ol class="orderedlist" type="1">
53<li class="listitem">
54<pre class="literallayout"><span class="keyword">typename</span> Stepper</pre>
55<p>The stepper type which should be used during the iteration. </p>
56</li>
57<li class="listitem">
58<pre class="literallayout"><span class="keyword">typename</span> System</pre>
59<p>The type of the system function (ODE) which should be solved. </p>
60</li>
61<li class="listitem">
62<pre class="literallayout"><span class="keyword">typename</span> State</pre>
63<p>The state type of the ODE. </p>
64</li>
65<li class="listitem">
66<pre class="literallayout"><span class="keyword">typename</span> TimeIterator</pre>
67<p>The iterator type for the sequence of time points. </p>
68</li>
69</ol></div>
70</div>
71<div class="refsect2">
72<a name="idm45600380531472"></a><h3>
73<a name="boost.numeric.odeint.times_time_iteratorconstruct-copy-destruct"></a><code class="computeroutput">times_time_iterator</code>
74        public
75       construct/copy/destruct</h3>
76<div class="orderedlist"><ol class="orderedlist" type="1">
77<li class="listitem"><pre class="literallayout"><a name="idm45875527650768-bb"></a><span class="identifier">times_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">&amp;</span> s<span class="special">,</span>
78                    <span class="identifier">TimeIterator</span> t_start<span class="special">,</span> <span class="identifier">TimeIterator</span> t_end<span class="special">,</span> <span class="identifier">time_type</span> dt<span class="special">)</span><span class="special">;</span></pre></li>
79<li class="listitem"><pre class="literallayout"><a name="idm45875527646352-bb"></a><span class="identifier">times_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">&amp;</span> s<span class="special">)</span><span class="special">;</span></pre></li>
80</ol></div>
81</div>
82</div>
83</div>
84<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
85<td align="left"></td>
86<td align="right"><div class="copyright-footer">Copyright © 2009-2015 Karsten Ahnert and Mario Mulansky<p>
87        Distributed under the Boost Software License, Version 1.0. (See accompanying
88        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>)
89      </p>
90</div></td>
91</tr></table>
92<hr>
93<div class="spirit-nav">
94<a accesskey="p" href="../../../header/boost/numeric/odeint/iterator/times_time_iterator_hpp.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/numeric/odeint/iterator/times_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_tim_idm45875527643824.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
95</div>
96</body>
97</html>
98