BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Performs a single-threaded depth probe computation with given sample. More...
Public Member Functions | |
DepthProbeComputation (const MultiLayer &multilayer, const SimulationOptions &options, ProgressHandler &progress, DepthProbeElementIter begin_it, DepthProbeElementIter end_it) | |
~DepthProbeComputation () override | |
std::string | errorMessage () const |
bool | isCompleted () const |
void | run () |
Protected Attributes | |
std::unique_ptr< ProcessedSample > | m_processed_sample |
ProgressHandler * | m_progress |
SimulationOptions | m_sim_options |
ComputationStatus | m_status |
Private Types | |
using | DepthProbeElementIter = std::vector< DepthProbeElement >::iterator |
Private Member Functions | |
void | runProtected () override |
Private Attributes | |
DepthProbeElementIter | m_begin_it |
DepthProbeComputationTerm | m_computation_term |
DepthProbeElementIter | m_end_it |
Performs a single-threaded depth probe computation with given sample.
Controlled by the multi-threading machinery in ISimulation::runSingleSimulation().
Definition at line 34 of file DepthProbeComputation.h.
|
private |
Definition at line 35 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 |
|
inlineinherited |
Definition at line 48 of file IComputation.h.
References ComputationStatus::errorMessage(), and IComputation::m_status.
|
inlineinherited |
Definition at line 47 of file IComputation.h.
References ComputationStatus::isCompleted(), and IComputation::m_status.
|
inherited |
Definition at line 31 of file IComputation.cpp.
References IComputation::m_status, IComputation::runProtected(), ComputationStatus::setCompleted(), ComputationStatus::setFailed(), and ComputationStatus::setRunning().
|
overrideprivatevirtual |
Implements IComputation.
Definition at line 39 of file DepthProbeComputation.cpp.
References ProgressHandler::alive(), DepthProbeComputationTerm::compute(), m_begin_it, m_computation_term, m_end_it, IComputation::m_progress, and DepthProbeComputationTerm::setProgressHandler().
|
private |
Definition at line 46 of file DepthProbeComputation.h.
Referenced by runProtected().
|
private |
Definition at line 47 of file DepthProbeComputation.h.
Referenced by runProtected().
|
private |
Definition at line 46 of file DepthProbeComputation.h.
Referenced by runProtected().
|
protectedinherited |
Definition at line 54 of file IComputation.h.
Referenced by DWBAComputation::DWBAComputation(), SpecularComputation::SpecularComputation(), and SpecularComputation::runProtected().
|
protectedinherited |
Definition at line 52 of file IComputation.h.
Referenced by runProtected(), DWBAComputation::runProtected(), and SpecularComputation::runProtected().
|
protectedinherited |
Definition at line 51 of file IComputation.h.
Referenced by DWBAComputation::DWBAComputation().
|
protectedinherited |
Definition at line 53 of file IComputation.h.
Referenced by IComputation::errorMessage(), IComputation::isCompleted(), and IComputation::run().