BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Member Functions | |
DepthProbeComputation (const MultiLayer &multilayer, const SimulationOptions &options, ProgressHandler &progress, DepthProbeElementIter begin_it, DepthProbeElementIter end_it) | |
~DepthProbeComputation () override | |
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 Types | |
using | DepthProbeElementIter = std::vector< DepthProbeElement >::iterator |
Private Member Functions | |
void | runProtected () override |
Private Attributes | |
DepthProbeElementIter | m_begin_it |
DepthProbeElementIter | m_end_it |
DepthProbeComputationTerm | m_computation_term |
Performs a single-threaded depth probe computation with given sample.
Controlled by the multi-threading machinery in Simulation::runSingleSimulation().
Definition at line 29 of file DepthProbeComputation.h.
|
private |
Definition at line 31 of file DepthProbeComputation.h.
DepthProbeComputation::DepthProbeComputation | ( | const MultiLayer & | multilayer, |
const SimulationOptions & | options, | ||
ProgressHandler & | progress, | ||
DepthProbeElementIter | begin_it, | ||
DepthProbeElementIter | end_it | ||
) |
Definition at line 25 of file DepthProbeComputation.cpp.
|
overridedefault |
|
overrideprivatevirtual |
Implements IComputation.
Definition at line 37 of file DepthProbeComputation.cpp.
References ProgressHandler::alive(), DepthProbeComputationTerm::compute(), m_begin_it, m_computation_term, m_end_it, IComputation::mp_progress, and DepthProbeComputationTerm::setProgressHandler().
|
inherited |
Definition at line 30 of file IComputation.cpp.
References IComputation::m_status, IComputation::runProtected(), ComputationStatus::setCompleted(), ComputationStatus::setErrorMessage(), ComputationStatus::setFailed(), and ComputationStatus::setRunning().
|
inlineinherited |
Definition at line 43 of file IComputation.h.
References ComputationStatus::isCompleted(), and IComputation::m_status.
|
inlineinherited |
Definition at line 44 of file IComputation.h.
References ComputationStatus::errorMessage(), and IComputation::m_status.
|
private |
Definition at line 42 of file DepthProbeComputation.h.
Referenced by runProtected().
|
private |
Definition at line 42 of file DepthProbeComputation.h.
Referenced by runProtected().
|
private |
Definition at line 43 of file DepthProbeComputation.h.
Referenced by runProtected().
|
protectedinherited |
Definition at line 47 of file IComputation.h.
Referenced by DWBAComputation::DWBAComputation().
|
protectedinherited |
Definition at line 48 of file IComputation.h.
Referenced by runProtected(), DWBAComputation::runProtected(), and SpecularComputation::runProtected().
|
protectedinherited |
Definition at line 49 of file IComputation.h.
Referenced by IComputation::errorMessage(), IComputation::isCompleted(), and IComputation::run().
|
protectedinherited |
Definition at line 50 of file IComputation.h.
Referenced by DWBAComputation::DWBAComputation(), SpecularComputation::runProtected(), and SpecularComputation::SpecularComputation().