#include <RKExplicit_fwd.hpp>
Class representing a step in the integration process.
This class satisfies std::forward_iterator
requirements and can therefore be used with STL-type algorithms.
Definition at line 87 of file RKExplicit_fwd.hpp.
Public Member Functions | |
IterationStep (const Integrator &integrator) | |
Construct an iterator at the initial values of the equation. More... | |
IterationStep (const Integrator &integrator, int) | |
Construct an (invalid) iterator pointing past the last step. More... | |
IterationStep & | operator++ () |
Advance the stepper for one time step, returning the new value. More... | |
IterationStep | operator++ (int) |
Advance the stepper for one time step, returning the old value. More... | |
bool | operator== (const IterationStep &other) const |
Compare two steppers if they are on the same step. More... | |
bool | operator!= (const IterationStep &other) const |
Negation of IterationStep::operator==. More... | |
IterationStep & | operator* () |
Noop, used to conform to std::iterator requirements. More... | |
const IterationStep & | operator* () const |
const version of IterationStep::operator* More... | |
operator bool () | |
Returns false if integrator went past the last step and true otherwise. More... | |
bool | is_last () const |
Returns true if integrator just completed its last step. More... | |
scalar_t | time () const |
Get current time. More... | |
Eigen::VectorXd | value () const |
Get current value. More... | |
scalar_t & | time () |
Read-write access to current time. More... | |
Eigen::VectorXd & | value () |
Read-write access to current value. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const IterationStep &step) |
Output current state of the stepper. More... | |
Private Attributes | |
const Integrator & | integrator |
reference to underlying integrator More... | |
scalar_t | t |
current time More... | |
Eigen::VectorXd | y |
current value More... | |
int | cur_step |
current step More... | |
|
inlineexplicit |
Construct an iterator at the initial values of the equation.
Definition at line 101 of file RKExplicit_fwd.hpp.
|
inline |
Construct an (invalid) iterator pointing past the last step.
Definition at line 105 of file RKExplicit_fwd.hpp.
|
inline |
Returns true if integrator just completed its last step.
Definition at line 145 of file RKExplicit_fwd.hpp.
|
inlineexplicit |
Returns false
if integrator went past the last step and true
otherwise.
Definition at line 140 of file RKExplicit_fwd.hpp.
|
inline |
Negation of IterationStep::operator==.
Definition at line 131 of file RKExplicit_fwd.hpp.
|
inline |
Noop, used to conform to std::iterator
requirements.
Definition at line 134 of file RKExplicit_fwd.hpp.
|
inline |
const version of IterationStep::operator*
Definition at line 137 of file RKExplicit_fwd.hpp.
|
inline |
Advance the stepper for one time step, returning the new value.
Definition at line 109 of file RKExplicit_fwd.hpp.
|
inline |
Advance the stepper for one time step, returning the old value.
++step
is preferred, due to not having a temporary variable. Definition at line 121 of file RKExplicit_fwd.hpp.
|
inline |
Compare two steppers if they are on the same step.
Definition at line 128 of file RKExplicit_fwd.hpp.
|
inline |
Read-write access to current time.
Definition at line 156 of file RKExplicit_fwd.hpp.
|
inline |
Get current time.
Definition at line 150 of file RKExplicit_fwd.hpp.
|
inline |
Read-write access to current value.
Definition at line 159 of file RKExplicit_fwd.hpp.
|
inline |
Get current value.
Definition at line 153 of file RKExplicit_fwd.hpp.
|
friend |
Output current state of the stepper.
Definition at line 162 of file RKExplicit_fwd.hpp.
|
private |
current step
Definition at line 97 of file RKExplicit_fwd.hpp.
|
private |
reference to underlying integrator
Definition at line 94 of file RKExplicit_fwd.hpp.
|
private |
current time
Definition at line 95 of file RKExplicit_fwd.hpp.
|
private |
current value
Definition at line 96 of file RKExplicit_fwd.hpp.