BornAgain  1.19.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 reflection and scattering
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/Param/Parameters.h"
21 
22 class ISimulation;
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 public:
31  virtual ~PyBuilderCallback();
32 
34 };
35 
36 class FitObjective;
37 
38 //! Observer for FitObjective based on Python callable.
39 //! Base class to wrap Python callable and pass it to C++. Used in swig interface file,
40 //! intended to be overloaded from Python.
41 
43 public:
46 
47  virtual void update(const FitObjective&);
48 };
49 
50 #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:33
Abstract base class of OffSpecularSimulation, GISASSimulation and SpecularSimulation.
Definition: ISimulation.h:38
Builds simulation object using a Python callable.
virtual ~PyBuilderCallback()
virtual ISimulation * build_simulation(mumufit::Parameters)
Observer for FitObjective based on Python callable.
virtual ~PyObserverCallback()
virtual void update(const FitObjective &)
A collection of fit parameters.
Definition: Parameters.h:26