#include <MockEulerIvpOdeSolver.hpp>
Public Member Functions | |
MockEulerIvpOdeSolver () | |
unsigned | GetCallCount () |
virtual | ~MockEulerIvpOdeSolver () |
Protected Member Functions | |
virtual void | InternalSolve (AbstractOdeSystem *pAbstractOdeSystem, std::vector< double > &rCurrentYValues, std::vector< double > &rWorkingMemory, double startTime, double endTime, double timeStep) |
Private Member Functions | |
template<class Archive> | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
unsigned | mCallCount |
Friends | |
class | boost::serialization::access |
Definition at line 43 of file MockEulerIvpOdeSolver.hpp.
MockEulerIvpOdeSolver::MockEulerIvpOdeSolver | ( | ) |
Constructor.
Definition at line 31 of file MockEulerIvpOdeSolver.cpp.
virtual MockEulerIvpOdeSolver::~MockEulerIvpOdeSolver | ( | ) | [inline, virtual] |
Destructor.
Definition at line 102 of file MockEulerIvpOdeSolver.hpp.
void MockEulerIvpOdeSolver::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Archive the abstract IVP Solver, never used directly - boost uses this.
archive | ||
version |
Reimplemented from EulerIvpOdeSolver.
Definition at line 55 of file MockEulerIvpOdeSolver.hpp.
References mCallCount.
void MockEulerIvpOdeSolver::InternalSolve | ( | AbstractOdeSystem * | pAbstractOdeSystem, | |
std::vector< double > & | rCurrentYValues, | |||
std::vector< double > & | rWorkingMemory, | |||
double | startTime, | |||
double | endTime, | |||
double | timeStep | |||
) | [protected, virtual] |
Method that actually performs the solving on behalf of the public Solve methods.
pAbstractOdeSystem | the ODE system to solve | |
rCurrentYValues | the current (initial) state; results will also be returned in here | |
rWorkingMemory | working memory; same size as rCurrentYValues | |
startTime | initial time | |
endTime | time to solve to | |
timeStep | dt |
Reimplemented from AbstractOneStepIvpOdeSolver.
Definition at line 42 of file MockEulerIvpOdeSolver.cpp.
References AbstractOneStepIvpOdeSolver::InternalSolve(), and mCallCount.
unsigned MockEulerIvpOdeSolver::GetCallCount | ( | ) |
Get the number of times the ODE solver has been called.
Definition at line 37 of file MockEulerIvpOdeSolver.cpp.
References mCallCount.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from EulerIvpOdeSolver.
Definition at line 47 of file MockEulerIvpOdeSolver.hpp.
unsigned MockEulerIvpOdeSolver::mCallCount [private] |
How many times the ODE solver has been called.
Definition at line 63 of file MockEulerIvpOdeSolver.hpp.
Referenced by GetCallCount(), InternalSolve(), and serialize().