BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
FixedBuilder.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Sample/SampleBuilderEngine/FixedBuilder.h
6 //! @brief Defines class FixedBuilder.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************** //
14 
15 #ifndef BORNAGAIN_CORE_SAMPLEBUILDERENGINE_FIXEDBUILDER_H
16 #define BORNAGAIN_CORE_SAMPLEBUILDERENGINE_FIXEDBUILDER_H
17 
19 #include <memory>
20 
21 class MultiLayer;
22 
23 //! A trivial sample builder class that builds a fixed sample.
24 
26 {
27 public:
28  FixedBuilder() = delete;
29  FixedBuilder(const MultiLayer&);
30  MultiLayer* buildSample() const;
31 
32 private:
33  std::unique_ptr<const MultiLayer> m_sample;
34 };
35 
36 #endif // BORNAGAIN_CORE_SAMPLEBUILDERENGINE_FIXEDBUILDER_H
Defines pure virtual base class ISampleBuilder.
A trivial sample builder class that builds a fixed sample.
Definition: FixedBuilder.h:26
std::unique_ptr< const MultiLayer > m_sample
Definition: FixedBuilder.h:33
MultiLayer * buildSample() const
FixedBuilder()=delete
Interface to the class capable to build samples to simulate.
Our sample model: a stack of layers one below the other.
Definition: MultiLayer.h:42