15 #ifndef BORNAGAIN_MVVM_MODEL_MVVM_UTILS_PROGRESSHANDLER_H
16 #define BORNAGAIN_MVVM_MODEL_MVVM_UTILS_PROGRESSHANDLER_H
18 #include "mvvm/model_export.h"
39 void setMaxTicksCount(
size_t value);
41 bool has_interrupt_request()
const;
43 void setCompletedTicks(
size_t value);
50 size_t max_ticks_count{0};
51 size_t completed_ticks{0};
52 bool interrupt_request{
false};
Maintain information about progress of a computation.
ProgressHandler & operator=(const ProgressHandler &other)=delete
ProgressHandler(const ProgressHandler &other)=delete
std::function< bool(size_t)> callback_t
callback_t runner_callback
ProgressHandler()=default
materialitems.h Collection of materials to populate MaterialModel.