Class SignalHandlerCallback

Inheritance Relationships

Base Type

  • public IterationCallback

Class Documentation

class ceres_error_terms::SignalHandlerCallback : public IterationCallback

If this ceres iteration callback functor is registered, the optimization can be terminated using the SIGINT signal (usually CTRL+C on POSIX systems).

The current iteration will be finished, the state written back to the output and the optimization terminates successfully.

Public Functions

virtual ~SignalHandlerCallback()
virtual ceres::CallbackReturnType operator()(const ceres::IterationSummary&)

Public Static Functions

static void signalHandler(int signal)