8#include <boost/python/class.hpp>
14 class_<ProgressBase, boost::noncopyable>(
"ProgressBase", no_init)
16 "Increment the progress by 1 and report with no message")
19 "Increment the progress by 1 and report along with "
23 (arg(
"self"), arg(
"i"), arg(
"msg")),
24 "Set the progress to given amount and "
25 "report along with the given message")
28 (arg(
"self"), arg(
"i"), arg(
"msg")),
29 "Increment the progress by given amount and "
30 "report along with the given message")
33 "Sets a new number of steps for the current progress range")
36 "Resets the number of steps & progress range to the given values")
39 "Set how often the notifications are actually reported")
42 "Returns an estimate of the time remaining. May not be to accurate "
43 "if the reporting is lumpy.");
void export_ProgressBase()
void resetNumSteps(int64_t nsteps, double start, double end)
Change the number of steps between start/end.
void reportIncrement(int inc, const std::string &msg="")
Sends the progress notification and increment the loop counter by more than one.
double getEstimatedTime() const
Returns the estimated number of seconds until the algorithm completes.
void report()
Increments the loop counter by 1, then sends the progress notification on behalf of its algorithm.
void setNumSteps(int64_t nsteps)
Change the number of steps between start/end.
void setNotifyStep(double notifyStepPct)
Override the frequency at which notifications are sent out.