ROSE
0.11.96.11
|
RAII sub-task progress.
Pushes a new context onto the specified progress reporting object in preparation for calling an analysis that does its own progress reporting.
Use this class like this. The completion ratios are arbitrary and we've assumed that do_something, inner both take roughly the same (large) amount of time.
Definition at line 437 of file Progress.h.
#include <Progress.h>
Public Member Functions | |
ProgressTask (const Progress::Ptr &progress, const std::string &name, double afterCompletion=NAN) | |
Prepare existing progress object for subtask. | |
ProgressTask (const std::string &name, double afterCompletion=NAN) | |
Create progress object for subtask. | |
~ProgressTask () | |
Clean up subtask progress. | |
Progress::Ptr | progress () const |
Progress object being used. More... | |
void | cancel () |
Cancel all cleanup operations. More... | |
|
inline |
Progress object being used.
This returns one of the following values:
Definition at line 473 of file Progress.h.
|
inline |
Cancel all cleanup operations.
If called, then the destructor will do nothing other than possibly releasing a reference to the progress object supplied to or created by the constructor.
Definition at line 481 of file Progress.h.