22 : m_re_sample(re_sample)
24 , m_progress(&progress)
52 }
catch (
const std::exception& ex) {
Defines class DelayedProgressCounter.
Defines interface IComputation.
Defines class ProgressHandler.
void setFailed(const std::string &message)
ProgressHandler * m_progress
IComputation(const reSample &re_sample, const SimulationOptions &options, ProgressHandler &progress)
std::unique_ptr< DelayedProgressCounter > m_progress_counter
void setProgressHandler(ProgressHandler *progress) const
virtual void runProtected()=0
Runs computation. May throw. To be called from run(), which catches exceptions.
void compute()
Calls runProtected(), catches exceptions, sets m_status.
ComputationStatus m_status
void stepProgress() const
Maintains information about progress of a computation.
Collect the different options for simulation.SimulationOptions.
Data structure that contains all the necessary data for scattering calculations.