LBIBCell
|
a class for reporting the current simulation status. Usage: construct an object of this class with the expected count Use the increment operator on this object on each increased count Then the current progress is printed to the output More...
#include <ProgressBar.hpp>
Public Member Functions | |
ProgressBar (unsigned int expected_count, double updateInterval=30, std::ostream &os=std::cout) | |
unsigned int | operator+= (unsigned int increment) |
unsigned int | operator++ () |
Prefix operator. More... | |
unsigned int | operator++ (int i) |
Postfix operator. More... | |
a class for reporting the current simulation status. Usage: construct an object of this class with the expected count Use the increment operator on this object on each increased count Then the current progress is printed to the output
Definition at line 36 of file ProgressBar.hpp.
|
explicit |
Constructor
expected_count | The expected count |
updateInterval | how often the information should be updated default this is 30 seconds |
os | The output stream |
Definition at line 27 of file ProgressBar.cpp.
unsigned int UtilLib::ProgressBar::operator++ | ( | ) |
unsigned int UtilLib::ProgressBar::operator++ | ( | int | i | ) |
Postfix operator.
i | the increased integer |
Definition at line 62 of file ProgressBar.cpp.
unsigned int UtilLib::ProgressBar::operator+= | ( | unsigned int | increment | ) |
Display appropriate progress tic if needed.
increment |
Definition at line 47 of file ProgressBar.cpp.