1 #ifndef SM_StochasticOutput_H
2 #define SM_StochasticOutput_H
5 #include "SM_StochasticOutputComponent.h"
23 template<
class StochOutputImplement>
106 return this->
open(beam);
114 return this->
open(s,system);
122 return this->
store(system);
131 return this->
close(s,system,hasSucceeded);
138 return this->
close(beam);
148 return static_cast<StochOutputImplement*
>(
this)->
open(beam);
156 return static_cast<StochOutputImplement*
>(
this)->
open(s,system);
165 return static_cast<StochOutputImplement*
>(
this)->
store(system);
172 inline tBoolean
close(
const tIndex& s,
const SM_System& system,
const tBoolean& hasSucceeded) {
173 return static_cast<StochOutputImplement*
>(
this)->
close(s,system,hasSucceeded);
179 return static_cast<StochOutputImplement*
>(
this)->
close(beam);
This class defines a general stochastic beam of trajectories of system.
Definition: SM_Beam.h:61
This class stores stochastic outpus computed for each trajectory of a simulation of trajectories of a...
Definition: SM_StochasticOutputComponent.h:36
virtual void copy(const SM_StochasticOutputComponent &c)
copy
Definition: SM_StochasticOutputComponent.h:162
virtual tMemSize getContentsMemorySize() const
return the memory size of the included associations
Definition: SM_StochasticOutputComponent.h:144
this class implements the virtual methods of its base class SM_StochasticOutputComponent with templat...
Definition: SM_StochasticOutput.h:24
virtual tBoolean closeComponent(const SM_Beam &beam) final
close stochastic data at the end of all simulations
Definition: SM_StochasticOutput.h:137
virtual ~SM_StochasticOutput(void)
destroy
Definition: SM_StochasticOutput.h:51
tBoolean close(const tIndex &s, const SM_System &system, const tBoolean &hasSucceeded)
close the stochastic data for the simulation s
Definition: SM_StochasticOutput.h:172
virtual tBoolean openComponent(const SM_Beam &beam) final
open the stochastic data
Definition: SM_StochasticOutput.h:105
virtual tBoolean storeComponent(const SM_System &system) final
store the stochastic data during the relation method of the system
Definition: SM_StochasticOutput.h:121
tBoolean close(const SM_Beam &beam)
close stochastic data at the end of all simulations
Definition: SM_StochasticOutput.h:178
virtual tMemSize getContentsMemorySize() const
return the memory size of the included associations
Definition: SM_StochasticOutput.h:84
tBoolean open(const tIndex &s, const SM_System &system)
open the stochastic data for simulation s
Definition: SM_StochasticOutput.h:155
virtual tBoolean openComponent(const tIndex &s, const SM_System &system) final
open the stochastic data for simulation s
Definition: SM_StochasticOutput.h:113
tBoolean store(const SM_System &system)
store the stochastic data during the relation method of the system
Definition: SM_StochasticOutput.h:164
virtual void copy(const SM_StochasticOutputComponent &c)
copy
Definition: SM_StochasticOutput.h:94
virtual tBoolean closeComponent(const tIndex &s, const SM_System &system, const tBoolean &hasSucceeded) final
close the stochastic data for the simulation s
Definition: SM_StochasticOutput.h:130
SM_StochasticOutput(void)
create
Definition: SM_StochasticOutput.h:40
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SM_StochasticOutput.h:72
tBoolean open(const SM_Beam &beam)
open the stochastic data
Definition: SM_StochasticOutput.h:147
This class is a one simulation of a beam for Stoch Magnet package.
Definition: SM_System.h:53