Class ProgressBar¶
Defined in File progress-bar.h
Class Documentation¶
-
class common::ProgressBar¶
Prints out progress on a single line.
Public Functions
-
explicit ProgressBar(const size_t num_elements)¶
The number of elements defines the range of the progress bar, i.e.
it corresponds to the number of elements to process.
-
ProgressBar(const size_t verbosity_level, const size_t num_elements)¶
-
inline virtual ~ProgressBar()¶
-
void update(size_t num_elements_processed)¶
Updates the progress bar given the current number of processed elements.
Expecting num_elements_processed <= num_elements.
-
void increment()¶
Increases the number of processed elements by one.
-
void reset(size_t num_elements)¶
Resets the progress bar.
Assigns the new range of elements with num_elements and resets the num_elements_processed to zero.
-
explicit ProgressBar(const size_t num_elements)¶