#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 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 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] |
Definition at line 46 of file stats.h.
Referenced by ProgressReporter(), and Update().
char* ProgressReporter::curSpace [mutable] |
Definition at line 51 of file stats.h.
Referenced by Done(), ProgressReporter(), and Update().
Definition at line 45 of file stats.h.
Referenced by ProgressReporter(), and Update().
Definition at line 49 of file stats.h.
Referenced by Done(), ProgressReporter(), and Update().
int ProgressReporter::plussesPrinted [mutable] |
Definition at line 47 of file stats.h.
Referenced by Done(), ProgressReporter(), and Update().
Timer* ProgressReporter::timer [mutable] |
Definition at line 48 of file stats.h.
Referenced by Done(), ProgressReporter(), Update(), and ~ProgressReporter().
const int ProgressReporter::totalPlusses |
Definition at line 44 of file stats.h.
Referenced by Done(), ProgressReporter(), and Update().