C++QEDCore  2.100.2 (v2 Milestone 10 Development branch)
a framework for simulating open quantum dynamics – core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
evolved::EvolvedIO< A > Class Template Reference

Class for serialization of Evolved states. More...

#include <Evolved.h>

+ Inheritance diagram for evolved::EvolvedIO< A >:
+ Collaboration diagram for evolved::EvolvedIO< A >:

Public Types

typedef boost::shared_ptr< EvolvedIOPtr
 
typedef boost::shared_ptr< const EvolvedIOConstPtr
 

Public Member Functions

 EvolvedIO (A &, double dtInit, double epsRel, double epsAbs)
 straightforward constructor More...
 
A & getA ()
 
A const & getA () const
 
virtual ~EvolvedIO ()
 necessary in order that EvolvedIO be polymorphic
 
- Public Member Functions inherited from evolved::TimeStepBookkeeper
double getDtDid () const
 returns the last performed timestep
 
double getDtTry () const
 returns the timestep to try in the next step
 
void setDtTry (double dtTry)
 Sets the timestep to try in the next step. More...
 
void update (double t, double dtTry)
 
TimeStepBookkeeperoperator= (const TimeStepBookkeeper &)
 straightforward assignment operator that avoids self-assignment
 
double getTime () const
 
void setTime (double t)
 
double getEpsRel () const
 relative precision
 
double getEpsAbs () const
 absolute precision
 

Friends

class boost::serialization::access
 The serialization of A by reference leads to memory leak (for not completely understood reasons),. More...
 

Additional Inherited Members

- Protected Member Functions inherited from evolved::TimeStepBookkeeper
 TimeStepBookkeeper (double dtInit, double epsRel, double epsAbs)
 straightforward constructor More...
 

Detailed Description

template<typename A>
class evolved::EvolvedIO< A >

Class for serialization of Evolved states.

See also
trajectory::AdaptiveIO
Template Parameters
Athe array type
Todo:
Think about using a shared pointer instead of plain reference for referencing the array

Definition at line 113 of file Evolved.h.

Constructor & Destructor Documentation

template<typename A>
evolved::EvolvedIO< A >::EvolvedIO ( A &  ,
double  dtInit,
double  epsRel,
double  epsAbs 
)

straightforward constructor

See also
TimeStepBookkeeper::TimeStepBookkeeper()

Friends And Related Function Documentation

template<typename A>
friend class boost::serialization::access
friend

The serialization of A by reference leads to memory leak (for not completely understood reasons),.

hence we adopt serialization by a temporary, which necessitates splitting save/load.

Definition at line 135 of file Evolved.h.


The documentation for this class was generated from the following file: