18#include <boost/function.hpp>
27 Progress(boost::function<
void(
float)> *setProgress);
41 boost::function<
void(
float)> *_setProgress;
void reset()
Set all internal fields to default values: step = 0 and progress = 0.
void setStep(float step)
Set progress step. This is added to the current progress anytime update function is invoked.
Progress(boost::function< void(float)> *setProgress)
Constructor.
void update()
Adds current step to the progress.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.