#include <Progress.hpp>
Definition at line 68 of file Progress.hpp.
◆ ProgressBar()
lvr2::ProgressBar::ProgressBar |
( |
size_t |
max_val, |
|
|
string |
prefix = "" |
|
) |
| |
Ctor.
- Parameters
-
max_val | The number of performed iterations |
prefix | The prefix string for progress output |
Definition at line 52 of file Progress.cpp.
◆ ~ProgressBar()
lvr2::ProgressBar::~ProgressBar |
( |
| ) |
|
|
virtual |
◆ operator++()
void lvr2::ProgressBar::operator++ |
( |
| ) |
|
Increases the counter of performed iterations.
Definition at line 83 of file Progress.cpp.
◆ operator+=()
void lvr2::ProgressBar::operator+= |
( |
size_t |
n | ) |
|
Increases the counter of performed by n.
Definition at line 108 of file Progress.cpp.
◆ print_bar()
void lvr2::ProgressBar::print_bar |
( |
| ) |
|
|
protected |
◆ setProgressCallback()
Registers a callback that is called with the new value when the percentage of the progress changed.
- Parameters
-
Definition at line 73 of file Progress.cpp.
◆ setProgressTitleCallback()
Registers a callback that is called when a new progress instance is created.
- Parameters
-
Definition at line 78 of file Progress.cpp.
◆ m_currentVal
size_t lvr2::ProgressBar::m_currentVal |
|
protected |
◆ m_fillstring
string lvr2::ProgressBar::m_fillstring |
|
protected |
A fill string for correct output alignment.
Definition at line 133 of file Progress.hpp.
◆ m_maxVal
size_t lvr2::ProgressBar::m_maxVal |
|
protected |
◆ m_mutex
boost::mutex lvr2::ProgressBar::m_mutex |
|
protected |
A mutex object for counter increment (for parallel executions)
Definition at line 124 of file Progress.hpp.
◆ m_percent
int lvr2::ProgressBar::m_percent |
|
protected |
The current progress in percent.
Definition at line 127 of file Progress.hpp.
◆ m_prefix
string lvr2::ProgressBar::m_prefix |
|
protected |
◆ m_progressCallback
◆ m_stream
stringstream lvr2::ProgressBar::m_stream |
|
protected |
A string stream for output generation.
Definition at line 130 of file Progress.hpp.
◆ m_titleCallback
The documentation for this class was generated from the following files: