BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
DepthProbeComputation.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Core/Computation/DepthProbeComputation.h
6 //! @brief Declares class DepthProbeComputation.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_CORE_COMPUTATION_DEPTHPROBECOMPUTATION_H
21 #define BORNAGAIN_CORE_COMPUTATION_DEPTHPROBECOMPUTATION_H
22 
25 
26 class MultiLayer;
27 
28 //! Performs a single-threaded depth probe computation with given sample.
29 //!
30 //! Controlled by the multi-threading machinery in ISimulation::runSingleSimulation().
31 //!
32 //! @ingroup algorithms_internal
33 
35  using DepthProbeElementIter = std::vector<DepthProbeElement>::iterator;
36 
37 public:
38  DepthProbeComputation(const MultiLayer& multilayer, const SimulationOptions& options,
39  ProgressHandler& progress, DepthProbeElementIter begin_it,
40  DepthProbeElementIter end_it);
42 
43 private:
44  void runProtected() override;
45 
48 };
49 
50 #endif // BORNAGAIN_CORE_COMPUTATION_DEPTHPROBECOMPUTATION_H
51 #endif // USER_API
Defines functor DepthProbeComputationTerm.
Defines interface IComputation.
Performs a single-threaded depth probe computation with given sample.
std::vector< DepthProbeElement >::iterator DepthProbeElementIter
DepthProbeComputationTerm m_computation_term
DepthProbeElementIter m_begin_it
DepthProbeComputation(const MultiLayer &multilayer, const SimulationOptions &options, ProgressHandler &progress, DepthProbeElementIter begin_it, DepthProbeElementIter end_it)
~DepthProbeComputation() override
DepthProbeElementIter m_end_it
Interface for a single-threaded computation with given range of SimulationElements and ProgressHandle...
Definition: IComputation.h:39
Our sample model: a stack of layers one below the other.
Definition: MultiLayer.h:41
Maintains information about progress of a computation.
Collect the different options for simulation.