#include <stats.h>
Public Member Functions | |
| ProgressReporter (int totalWork, const string &title, int barLength=58) | |
| ~ProgressReporter () | |
| void | Update (int num=1) const |
| void | Done () const |
Public Attributes | |
| const int | totalPlusses |
| float | frequency |
| float | count |
| int | plussesPrinted |
| Timer * | timer |
| FILE * | outFile |
| char * | buf |
| char * | curSpace |
Definition at line 36 of file stats.h.
| ProgressReporter::ProgressReporter | ( | int | totalWork, | |
| const string & | title, | |||
| int | barLength = 58 | |||
| ) |
Definition at line 251 of file util.cpp.
References buf, count, curSpace, frequency, outFile, plussesPrinted, Timer::Start(), cimg_library::cimg::strlen(), timer, and totalPlusses.
| ProgressReporter::~ProgressReporter | ( | ) |
| void ProgressReporter::Done | ( | ) | const |
Definition at line 296 of file util.cpp.
References buf, curSpace, outFile, plussesPrinted, Timer::Time(), timer, and totalPlusses.
Referenced by lux::ApplyImagingPipeline(), BestCandidate2D(), main(), lux::HighContrastOp::Map(), lux::PhotonIntegrator::Preprocess(), and Redistribute2D().
| void ProgressReporter::Update | ( | int | num = 1 |
) | const |
Definition at line 274 of file util.cpp.
References buf, count, curSpace, frequency, cimg_library::cimg::max(), outFile, plussesPrinted, Timer::Time(), timer, and totalPlusses.
Referenced by lux::ApplyImagingPipeline(), BestCandidate2D(), main(), lux::HighContrastOp::Map(), lux::PhotonIntegrator::Preprocess(), and Redistribute2D().
| char* ProgressReporter::buf |
Definition at line 50 of file stats.h.
Referenced by Done(), ProgressReporter(), Update(), and ~ProgressReporter().
float ProgressReporter::count [mutable] |
char* ProgressReporter::curSpace [mutable] |
int ProgressReporter::plussesPrinted [mutable] |
Timer* ProgressReporter::timer [mutable] |
Definition at line 48 of file stats.h.
Referenced by Done(), ProgressReporter(), Update(), and ~ProgressReporter().
| const int ProgressReporter::totalPlusses |
1.5.9