Template class used to create multi progress bars.
More...
#include <multi_progress_bar.hpp>
|
template<class... Inds> |
| make_MultiProgressBar (Inds &&...bars) |
| Construct a new make MultiProgressBar object. More...
|
|
template<class Func , class... Args> |
void | for_one (size_t idx, Func &&func, Args &&...args) |
| Method used to update the progress bar for one progress bar only. More...
|
|
template<class Func , class... Args> |
void | for_each (Func &&func, Args &&...args) |
| Method used to update progress bars simultaneously. More...
|
|
|
static size_t | size () |
| Return the number of the indicators. More...
|
|
template<class... Indicators>
class osm::make_MultiProgressBar< Indicators >
Template class used to create multi progress bars.
- Template Parameters
-
Indicators | The parameter pack of the various progress bar types. |
◆ make_MultiProgressBar()
template<class... Indicators>
template<class... Inds>
Construct a new make MultiProgressBar object.
- Template Parameters
-
Inds | The parameter pack of the various progress bar types indicators. |
- Parameters
-
◆ for_each()
template<class... Indicators>
template<class Func , class... Args>
Method used to update progress bars simultaneously.
- Template Parameters
-
Func | The type of the callable object (e.g., a function, lambda, or functor). |
Args | The types of the additional arguments that will be passed to the callable. |
- Parameters
-
idx | The index of the progress bar to update. |
func | The callable object used to update the progress bar. |
args | Additional arguments to be passed to the callable. |
◆ for_one()
template<class... Indicators>
template<class Func , class... Args>
Method used to update the progress bar for one progress bar only.
- Template Parameters
-
Func | The type of the callable object (e.g., a function, lambda, or functor). |
Args | The types of the additional arguments that will be passed to the callable. |
- Parameters
-
idx | The index of the progress bar to update. |
func | The callable object used to update the progress bar. |
args | Additional arguments to be passed to the callable. |
◆ size()
template<class... Indicators>
Return the number of the indicators.
- Returns
- size_t The number of the indicators.
The documentation for this class was generated from the following file: