#include <MultiThreadedAlgorithm.h>

Public Member Functions | |
| MultiPhaseProgressReporter (ProgressReporter &base, const std::vector< int > &phaseWeights) | |
| virtual | ~MultiPhaseProgressReporter () |
| void | reportProgress (int percent) |
| void | reportError (const std::string &text) |
| void | setCurrentPhase (int phase) |
| int | getCurrentPhase () const |
Definition at line 578 of file MultiThreadedAlgorithm.h.
| mta::MultiPhaseProgressReporter::MultiPhaseProgressReporter | ( | ProgressReporter & | base, | |
| const std::vector< int > & | phaseWeights | |||
| ) |
Constructor.
| base | ProgressReporter used for reports. | |
| phaseWeights | How much each phase contributes to the overall progress. |
Definition at line 589 of file MultiThreadedAlgorithm.h.
| virtual mta::MultiPhaseProgressReporter::~MultiPhaseProgressReporter | ( | ) | [virtual] |
| void mta::MultiPhaseProgressReporter::reportProgress | ( | int | percent | ) | [virtual] |
Report progress percent.
| percent | The percent completion. |
Implements mta::ProgressReporter.
| void mta::MultiPhaseProgressReporter::reportError | ( | const std::string & | text | ) | [virtual] |
| void mta::MultiPhaseProgressReporter::setCurrentPhase | ( | int | phase | ) |
Set the current algorithm phase.
| phase | The phase the algorithm is executing. |
| int mta::MultiPhaseProgressReporter::getCurrentPhase | ( | ) | const |
Access the current algorithm phase.