|
BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Member Functions | |
| IComputation (const MultiLayer &sample, const SimulationOptions &options, ProgressHandler &progress) | |
| virtual | ~IComputation () |
| void | run () |
| bool | isCompleted () const |
| std::string | errorMessage () const |
Protected Attributes | |
| SimulationOptions | m_sim_options |
| ProgressHandler * | mp_progress |
| ComputationStatus | m_status |
| std::unique_ptr< ProcessedSample > | mP_processed_sample |
Private Member Functions | |
| virtual void | runProtected ()=0 |
Interface for a single-threaded computation with given range of SimulationElements and ProgressHandler.
Controlled by the multi-threading machinery in Simulation::runSingleSimulation().
Definition at line 34 of file IComputation.h.
| IComputation::IComputation | ( | const MultiLayer & | sample, |
| const SimulationOptions & | options, | ||
| ProgressHandler & | progress | ||
| ) |
Definition at line 21 of file IComputation.cpp.
|
virtualdefault |
| void IComputation::run | ( | ) |
Definition at line 30 of file IComputation.cpp.
References m_status, runProtected(), ComputationStatus::setCompleted(), ComputationStatus::setErrorMessage(), ComputationStatus::setFailed(), and ComputationStatus::setRunning().
|
inline |
Definition at line 43 of file IComputation.h.
References ComputationStatus::isCompleted(), and m_status.
|
inline |
Definition at line 44 of file IComputation.h.
References ComputationStatus::errorMessage(), and m_status.
|
privatepure virtual |
Implemented in SpecularComputation, DWBAComputation, and DepthProbeComputation.
Referenced by run().
|
protected |
Definition at line 47 of file IComputation.h.
Referenced by DWBAComputation::DWBAComputation().
|
protected |
Definition at line 48 of file IComputation.h.
Referenced by DepthProbeComputation::runProtected(), DWBAComputation::runProtected(), and SpecularComputation::runProtected().
|
protected |
Definition at line 49 of file IComputation.h.
Referenced by errorMessage(), isCompleted(), and run().
|
protected |
Definition at line 50 of file IComputation.h.
Referenced by DWBAComputation::DWBAComputation(), SpecularComputation::runProtected(), and SpecularComputation::SpecularComputation().