GEDLIB
1.0
|
A progress bar class. More...
#include <progress_bar.hpp>
Public Member Functions | |
ProgressBar (std::size_t num_tasks) | |
Constructs a progress bar for given number of tasks. More... | |
void | increment () |
Increments the number of solved tasks. | |
void | reset () |
Sets the number of solved tasks to 0. | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &os, const ProgressBar &progress_bar) |
Streams the current progress in percent and the estimated remaining runtime. More... | |
A progress bar class.
Definition at line 39 of file progress_bar.hpp.
ged::ProgressBar::ProgressBar | ( | std::size_t | num_tasks | ) |
Constructs a progress bar for given number of tasks.
[in] | num_tasks | The number of tasks. |
Definition at line 33 of file progress_bar.ipp.
|
related |
Streams the current progress in percent and the estimated remaining runtime.
[in,out] | os | Output stream. |
[in] | progress_bar | The progress bar whose current progress should be streamed. |
os
. Definition at line 51 of file progress_bar.ipp.