ROSE 0.11.145.192
|
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 445 of file Progress.h.
#include <Rose/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. | |
void | cancel () |
Cancel all cleanup operations. | |
|
inline |
Prepare existing progress object for subtask.
Definition at line 451 of file Progress.h.
References Rose::Progress::Report::completion.
|
inline |
Create progress object for subtask.
Definition at line 461 of file Progress.h.
References Rose::Progress::Report::completion.
|
inline |
Clean up subtask progress.
Definition at line 469 of file Progress.h.
|
inline |
Progress object being used.
This returns one of the following values:
Definition at line 481 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 489 of file Progress.h.