|
SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
|
Holds a progress reporter for the duration of one analysis. More...
#include <analysishost.h>

Public Member Functions | |
| ScopedProgressReporter (AnalysisHost *host, int number_of_panels=1, bool extra_label_and_progressbar=false) | |
| ~ScopedProgressReporter () | |
| ScopedProgressReporter (const ScopedProgressReporter &)=delete | |
| ScopedProgressReporter & | operator= (const ScopedProgressReporter &)=delete |
| ProgressReporter * | Get () const |
| ProgressReporter * | operator-> () const |
| operator ProgressReporter * () const | |
Private Attributes | |
| AnalysisHost * | host_ |
| ProgressReporter * | reporter_ |
Holds a progress reporter for the duration of one analysis.
Obtains a reporter from the host on construction and returns it on destruction, so that an analysis leaving by any of its return paths still releases it. It converts to ProgressReporter* and forwards operator->, so it can be used wherever a reporter pointer was used before.
Definition at line 76 of file analysishost.h.
|
inline |
Definition at line 79 of file analysishost.h.
|
inline |
Definition at line 89 of file analysishost.h.
References AnalysisHost::DisposeProgressReporter(), host_, and reporter_.
|
delete |
|
inline |
Definition at line 98 of file analysishost.h.
References reporter_.
|
inline |
Definition at line 100 of file analysishost.h.
References reporter_.
|
inline |
Definition at line 99 of file analysishost.h.
References reporter_.
|
delete |
|
private |
Definition at line 103 of file analysishost.h.
Referenced by ~ScopedProgressReporter().
|
private |
Definition at line 104 of file analysishost.h.
Referenced by ~ScopedProgressReporter(), Get(), operator ProgressReporter *(), and operator->().