BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
PyObserverCallback Class Reference
Collaboration diagram for PyObserverCallback:

Public Member Functions

 PyObserverCallback ()
 
virtual ~PyObserverCallback ()
 
virtual void update (const FitObjective &)
 

Detailed Description

Observer for FitObjective based on Python callable.

Base class to wrap Python callable and pass it to C++. Used in swig interface file, intended to be overloaded from Python.

Definition at line 43 of file PyFittingCallbacks.h.

Constructor & Destructor Documentation

◆ PyObserverCallback()

PyObserverCallback::PyObserverCallback ( )
default

◆ ~PyObserverCallback()

PyObserverCallback::~PyObserverCallback ( )
virtualdefault

Member Function Documentation

◆ update()

void PyObserverCallback::update ( const FitObjective )
virtual

Definition at line 34 of file PyFittingCallbacks.cpp.

35 {
36  throw std::runtime_error("PyObserverCallback::update() -> Error. Not implemented");
37 }

Referenced by FitObjective::initPlot().


The documentation for this class was generated from the following files: