ug4
|
time series of solutions and corresponding time point More...
#include <solution_time_series.h>
Classes | |
class | TimeSol |
grouping of solution and time point More... | |
Public Types | |
typedef TVector | vector_type |
vector type of solutions More... | |
Public Member Functions | |
void | clear () |
clears the content of the member m_vTimeSol More... | |
SmartPtr< VectorTimeSeries< vector_type > > | clone () const |
clones the object (deep-copy) including values More... | |
SmartPtr< vector_type > | latest () |
returns latest solution More... | |
ConstSmartPtr< vector_type > | latest () const |
const access to latest solution More... | |
number | latest_time () const |
time associated with latest solution More... | |
SmartPtr< vector_type > | oldest () |
returns oldest solution More... | |
ConstSmartPtr< vector_type > | oldest () const |
const access to oldest solution More... | |
number | oldest_time () const |
time associated with oldest solution More... | |
void | push (SmartPtr< vector_type > vec, number time) |
adds new time point, not discarding the oldest More... | |
SmartPtr< vector_type > | push_discard_oldest (SmartPtr< vector_type > vec, number time) |
adds new time point, oldest solution is discarded and returned More... | |
void | remove_latest () |
removes latest time point More... | |
void | remove_oldest () |
removes oldest time point More... | |
size_t | size () const |
returns number of time steps handled More... | |
SmartPtr< vector_type > | solution (size_t i) |
returns solution More... | |
ConstSmartPtr< vector_type > | solution (size_t i) const |
returns solution More... | |
number | time (size_t i) const |
returns point in time for solution More... | |
virtual | ~VectorTimeSeries () |
Protected Attributes | |
std::deque< TimeSol > | m_vTimeSol |
time series of solutions and corresponding time point
This class holds solutions and corresponding points in time. It is intended to group previous computed solutions for a time stepping scheme, such that previous steps can be passed to a time stepping scheme at once. Internally, this object is basically a deque of old solutions, and adding a newly computed solution lets the object pop the oldest stored solution.
typedef TVector ug::VectorTimeSeries< TVector >::vector_type |
vector type of solutions
|
inlinevirtual |
|
inline |
clears the content of the member m_vTimeSol
References ug::VectorTimeSeries< TVector >::m_vTimeSol.
|
inline |
clones the object (deep-copy) including values
References ug::VectorTimeSeries< TVector >::m_vTimeSol, ug::VectorTimeSeries< TVector >::solution(), and ug::VectorTimeSeries< TVector >::time().
|
inline |
returns latest solution
References ug::VectorTimeSeries< TVector >::m_vTimeSol.
|
inline |
const access to latest solution
References ug::VectorTimeSeries< TVector >::m_vTimeSol.
|
inline |
time associated with latest solution
References ug::VectorTimeSeries< TVector >::m_vTimeSol.
|
inline |
returns oldest solution
References ug::VectorTimeSeries< TVector >::m_vTimeSol.
|
inline |
const access to oldest solution
References ug::VectorTimeSeries< TVector >::m_vTimeSol.
|
inline |
time associated with oldest solution
References ug::VectorTimeSeries< TVector >::m_vTimeSol.
|
inline |
adds new time point, not discarding the oldest
References ug::VectorTimeSeries< TVector >::m_vTimeSol, and ug::VectorTimeSeries< TVector >::time().
Referenced by ug::VectorTimeSeries< TVector >::push_discard_oldest().
|
inline |
adds new time point, oldest solution is discarded and returned
References ug::VectorTimeSeries< TVector >::m_vTimeSol, ug::VectorTimeSeries< TVector >::push(), ug::VectorTimeSeries< TVector >::remove_oldest(), and ug::VectorTimeSeries< TVector >::time().
|
inline |
removes latest time point
References ug::VectorTimeSeries< TVector >::m_vTimeSol.
|
inline |
removes oldest time point
References ug::VectorTimeSeries< TVector >::m_vTimeSol.
Referenced by ug::VectorTimeSeries< TVector >::push_discard_oldest().
|
inline |
returns number of time steps handled
References ug::VectorTimeSeries< TVector >::m_vTimeSol.
|
inline |
returns solution
References ug::VectorTimeSeries< TVector >::m_vTimeSol.
Referenced by ug::VectorTimeSeries< TVector >::clone().
|
inline |
returns solution
References ug::VectorTimeSeries< TVector >::m_vTimeSol.
|
inline |
returns point in time for solution
References ug::VectorTimeSeries< TVector >::m_vTimeSol.
Referenced by ug::VectorTimeSeries< TVector >::clone(), ug::VectorTimeSeries< TVector >::push(), and ug::VectorTimeSeries< TVector >::push_discard_oldest().
|
protected |
Referenced by ug::VectorTimeSeries< TVector >::clear(), ug::VectorTimeSeries< TVector >::clone(), ug::VectorTimeSeries< TVector >::latest(), ug::VectorTimeSeries< TVector >::latest_time(), ug::VectorTimeSeries< TVector >::oldest(), ug::VectorTimeSeries< TVector >::oldest_time(), ug::VectorTimeSeries< TVector >::push(), ug::VectorTimeSeries< TVector >::push_discard_oldest(), ug::VectorTimeSeries< TVector >::remove_latest(), ug::VectorTimeSeries< TVector >::remove_oldest(), ug::VectorTimeSeries< TVector >::size(), ug::VectorTimeSeries< TVector >::solution(), and ug::VectorTimeSeries< TVector >::time().