| 
    BornAgain
    1.19.0
    
   Simulate and fit neutron and x-ray scattering at grazing incidence 
   | 
 
Converts user objective function to function ROOT expects. More...
Public Member Functions | |
| ObjectiveFunctionAdapter () | |
| ~ObjectiveFunctionAdapter () | |
| int | numberOfCalls () const | 
| int | numberOfGradientCalls () const | 
| const RootScalarFunction * | rootObjectiveFunction (fcn_scalar_t fcn, const Parameters ¶meters) | 
| const RootResidualFunction * | rootResidualFunction (fcn_residual_t fcn, const Parameters ¶meters) | 
Private Attributes | |
| std::unique_ptr< IFunctionAdapter > | m_adapter | 
Converts user objective function to function ROOT expects.
Handles time of life of function objects.
Definition at line 37 of file ObjectiveFunctionAdapter.h.
      
  | 
  default | 
      
  | 
  default | 
| int ObjectiveFunctionAdapter::numberOfCalls | ( | ) | const | 
Definition at line 46 of file ObjectiveFunctionAdapter.cpp.
References m_adapter.
| int ObjectiveFunctionAdapter::numberOfGradientCalls | ( | ) | const | 
Definition at line 51 of file ObjectiveFunctionAdapter.cpp.
References m_adapter.
| const RootScalarFunction * ObjectiveFunctionAdapter::rootObjectiveFunction | ( | fcn_scalar_t | fcn, | 
| const Parameters & | parameters | ||
| ) | 
Definition at line 28 of file ObjectiveFunctionAdapter.cpp.
References m_adapter.
| const RootResidualFunction * ObjectiveFunctionAdapter::rootResidualFunction | ( | fcn_residual_t | fcn, | 
| const Parameters & | parameters | ||
| ) | 
Definition at line 37 of file ObjectiveFunctionAdapter.cpp.
References m_adapter.
      
  | 
  private | 
Definition at line 51 of file ObjectiveFunctionAdapter.h.
Referenced by numberOfCalls(), numberOfGradientCalls(), rootObjectiveFunction(), and rootResidualFunction().