20 static_assert(std::is_copy_constructible<DepthProbeComputation>::value ==
false,
21 "DepthProbeComputation should not be copy constructible");
22 static_assert(std::is_copy_assignable<DepthProbeComputation>::value ==
false,
23 "DepthProbeComputation should not be copy assignable");
25 DepthProbeComputation::DepthProbeComputation(
const MultiLayer& multilayer,
28 DepthProbeElementIter begin_it,
29 DepthProbeElementIter end_it)
30 :
IComputation(multilayer, options, progress), m_begin_it(begin_it), m_end_it(end_it),
31 m_computation_term(mP_processed_sample.get())
35 DepthProbeComputation::~DepthProbeComputation() =
default;
37 void DepthProbeComputation::runProtected()
39 if (!mp_progress->alive())
41 m_computation_term.setProgressHandler(mp_progress);
42 for (
auto it = m_begin_it; it != m_end_it; ++it) {
43 m_computation_term.compute(*it);
Declares class DepthProbeComputation.
Defines class DepthProbeElement.
Defines class MultiLayer.
Defines class ProgressHandler.
Interface for a single-threaded computation with given range of SimulationElements and ProgressHandle...
Our sample model: a stack of layers one below the other.
Maintains information about progress of a computation.
Collect the different options for simulation.