BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
FixedBuilder.cpp
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Sample/SampleBuilderEngine/FixedBuilder.cpp
6 //! @brief Implements 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 
17 
18 FixedBuilder::FixedBuilder(const MultiLayer& sample) : m_sample(sample.clone()) {}
19 
21 {
22  return m_sample->clone();
23 }
Defines class FixedBuilder.
Defines class MultiLayer.
std::unique_ptr< const MultiLayer > m_sample
Definition: FixedBuilder.h:33
MultiLayer * buildSample() const
FixedBuilder()=delete
Our sample model: a stack of layers one below the other.
Definition: MultiLayer.h:42