#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.
Definition at line 236 of file util.cpp.
References buf, count, curSpace, frequency, cimg_library::cimg::fwrite(), outFile, plussesPrinted, Timer::Start(), cimg_library::cimg::strlen(), timer, and totalPlusses.
ProgressReporter::~ProgressReporter | ( | ) |
void ProgressReporter::Done | ( | ) | const |
Definition at line 281 of file util.cpp.
References buf, curSpace, outFile, plussesPrinted, Timer::Time(), timer, and totalPlusses.
Referenced by lux::HighContrastOp::Map(), lux::PhotonIntegrator::Preprocess(), and lux::ExPhotonIntegrator::Preprocess().
void ProgressReporter::Update | ( | int | num = 1 |
) | const |
Definition at line 259 of file util.cpp.
References buf, count, curSpace, frequency, cimg_library::cimg::max(), outFile, plussesPrinted, Timer::Time(), timer, and totalPlusses.
Referenced by lux::HighContrastOp::Map(), lux::PhotonIntegrator::Preprocess(), and lux::ExPhotonIntegrator::Preprocess().
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().
Definition at line 44 of file stats.h.
Referenced by Done(), ProgressReporter(), and Update().