BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
PyFittingCallbacks.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Core/Fitting/PyFittingCallbacks.h
6 //! @brief Defines family of PyFittingCallbacks classes.
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_FITTING_PYFITTINGCALLBACKS_H
16 #define BORNAGAIN_CORE_FITTING_PYFITTINGCALLBACKS_H
17 
18 //! Collection of wrapper classes to call Python callable from C++.
19 
20 #include "Fit/Kernel/Parameters.h"
21 
22 class Simulation;
23 
24 //! Builds simulation object using a Python callable.
25 //! Base class to wrap Python callable and pass it to C++. Used in swig interface file,
26 //! intended to be overloaded from Python.
27 
29 {
30 public:
32  virtual ~PyBuilderCallback();
33 
35 };
36 
37 class FitObjective;
38 
39 //! Observer for FitObjective based on Python callable.
40 //! Base class to wrap Python callable and pass it to C++. Used in swig interface file,
41 //! intended to be overloaded from Python.
42 
44 {
45 public:
48 
49  virtual void update(const FitObjective&);
50 };
51 
52 #endif // BORNAGAIN_CORE_FITTING_PYFITTINGCALLBACKS_H
Defines class Parameters.
Holds vector of SimDataPairs (experimental data and simulation results) for use in fitting.
Definition: FitObjective.h:34
A collection of fit parameters.
Definition: Parameters.h:28
Builds simulation object using a Python callable.
virtual Simulation * build_simulation(Fit::Parameters)
virtual ~PyBuilderCallback()
Observer for FitObjective based on Python callable.
virtual ~PyObserverCallback()
virtual void update(const FitObjective &)
Pure virtual base class of OffSpecularSimulation, GISASSimulation and SpecularSimulation.
Definition: Simulation.h:38