BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
IFunctionAdapter.cpp
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Fit/Kernel/IFunctionAdapter.cpp
6 //! @brief Implements class IFunctionAdapter.
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 
16 
17 using namespace Fit;
18 
19 IFunctionAdapter::IFunctionAdapter() : m_number_of_calls(0), m_number_of_gradient_calls(0) {}
20 
21 IFunctionAdapter::~IFunctionAdapter() = default;
22 
23 int IFunctionAdapter::numberOfCalls() const
24 {
25  return m_number_of_calls;
26 }
27 
28 int IFunctionAdapter::numberOfGradientCalls() const
29 {
30  return m_number_of_gradient_calls;
31 }
Defines class IFunctionAdapter.
Objective function types.