BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
DepthProbeComputationTerm.h
Go to the documentation of this file.
1
// ************************************************************************** //
2
//
3
// BornAgain: simulate and fit scattering at grazing incidence
4
//
5
//! @file Core/Computation/DepthProbeComputationTerm.h
6
//! @brief Defines functor DepthProbeComputationTerm.
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
#ifndef BORNAGAIN_CORE_COMPUTATION_DEPTHPROBECOMPUTATIONTERM_H
16
#define BORNAGAIN_CORE_COMPUTATION_DEPTHPROBECOMPUTATIONTERM_H
17
18
#include <memory>
19
20
class
DelayedProgressCounter
;
21
class
ProcessedSample
;
22
class
ProgressHandler
;
23
class
DepthProbeElement
;
24
25
class
DepthProbeComputationTerm
26
{
27
public
:
28
DepthProbeComputationTerm
(
const
ProcessedSample
* p_sample);
29
~
DepthProbeComputationTerm
();
30
31
void
setProgressHandler(
ProgressHandler
* p_progress);
32
33
void
compute(
DepthProbeElement
& elem)
const
;
34
35
private
:
36
const
ProcessedSample
* mp_sample;
37
std::unique_ptr<DelayedProgressCounter> mP_progress_counter;
38
};
39
40
#endif
// BORNAGAIN_CORE_COMPUTATION_DEPTHPROBECOMPUTATIONTERM_H
DelayedProgressCounter
Counter for reporting progress (with delay interval) in a threaded computation.
Definition:
DelayedProgressCounter.h:25
DepthProbeComputationTerm
Definition:
DepthProbeComputationTerm.h:26
DepthProbeElement
Definition:
DepthProbeElement.h:25
ProcessedSample
Data structure that contains all the necessary data for scattering calculations.
Definition:
ProcessedSample.h:38
ProgressHandler
Maintains information about progress of a computation.
Definition:
ProgressHandler.h:31
Core
Computation
DepthProbeComputationTerm.h
Generated by
1.9.1