16 #error no need to expose this header to Swig
20 #ifndef BORNAGAIN_BASE_PROGRESS_PROGRESSHANDLER_H
21 #define BORNAGAIN_BASE_PROGRESS_PROGRESSHANDLER_H
Our sample model: a stack of layers one below the other.
Maintains information about progress of a computation.
size_t m_completed_nticks
void subscribe(ProgressHandler::Callback_t callback)
ProgressHandler(const ProgressHandler &other)
bool defaultMonitorExec(int)
void setExpectedNTicks(size_t n)
void incrementDone(size_t ticks_done)
Increments number of completed computation steps (ticks).
std::function< bool(size_t)> Callback_t