BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
LayoutStrategyBuilder.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Core/Computation/LayoutStrategyBuilder.h
6 //! @brief Defines class LayoutStrategyBuilder.
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_LAYOUTSTRATEGYBUILDER_H
16 #define BORNAGAIN_CORE_COMPUTATION_LAYOUTSTRATEGYBUILDER_H
17 
19 #include <memory>
20 
23 class ProcessedLayout;
24 
25 //! Methods to generate a simulation strategy for a ParticleLayoutComputation.
26 //! @ingroup algorithms_internal
27 
29 {
30 public:
31  LayoutStrategyBuilder(const ProcessedLayout* p_layout, const SimulationOptions& sim_params,
32  bool polarized);
33 
35 
37 
38 private:
39  void createStrategy();
40 
43  bool m_polarized; //!< polarized computation required?
44  std::unique_ptr<IInterferenceFunctionStrategy> mP_strategy;
45 };
46 
47 #endif // BORNAGAIN_CORE_COMPUTATION_LAYOUTSTRATEGYBUILDER_H
Defines class SimulationOptions.
Base class of all interference function strategy classes.
Pure virtual base class of interference functions.
Methods to generate a simulation strategy for a ParticleLayoutComputation.
bool m_polarized
polarized computation required?
IInterferenceFunctionStrategy * releaseStrategy()
const ProcessedLayout * mp_layout
LayoutStrategyBuilder(const ProcessedLayout *p_layout, const SimulationOptions &sim_params, bool polarized)
void createStrategy()
Returns a new strategy object that is able to calculate the scattering for fixed k_f.
SimulationOptions m_sim_params
std::unique_ptr< IInterferenceFunctionStrategy > mP_strategy
Data structure that contains preprocessed data for a single layout.
Collect the different options for simulation.