Class MultiThreadedProgressBar¶
Defined in File multi-threaded-progress-bar.h
Nested Relationships¶
Class Documentation¶
-
class
common
::
MultiThreadedProgressBar
¶ Prints out progress on a single line for multi-threaded work.
Public Functions
-
MultiThreadedProgressBar
()¶
-
explicit
MultiThreadedProgressBar
(const size_t verbosity_level)¶
-
inline virtual
~MultiThreadedProgressBar
()¶
-
void
update
(size_t num_elements_processed)¶ Updates the progress bar given the current number of processed elements.
Expecting num_elements_processed <= num_elements defined for this thread through a previous call to setNumElements(…).
-
void
update
(size_t num_elements_processed, size_t total_number_of_elements_to_process)¶ Updates the progress bar given the current number of processed elements and the total number of elements to process.
Does not require a previous call to setNumElements(…).
-
void
setNumElements
(size_t num_elemens)¶ Assigns the total number of elements associated with the calling thread.
-
void
reset
()¶ Reset the progress bar state back to construction time.
-