Go to the documentation of this file.
   41 using std::stringstream;
 
   63                 index = prefix.find_last_of(
"]");
 
   85     boost::mutex::scoped_lock lock(
m_mutex);
 
   94     while (difference >= 1)
 
  110     boost::mutex::scoped_lock lock(
m_mutex);
 
  119     while (difference >= 1)
 
  147         boost::mutex::scoped_lock lock(
m_mutex);
 
  166         ,m_bar_length(bar_length)
 
  176                 index = prefix.find_last_of(
"]");
 
  198     boost::mutex::scoped_lock lock(
m_mutex);
 
  208     while (difference >= 1)
 
  228         for(
size_t i=0; i< char_idx; i++)
 
  233         if(char_idx % 2 == 0)
 
  250     cout << 
" | " << flush;
 
  
ProgressCounter(int stepVal, string prefix="")
static void setProgressTitleCallback(ProgressTitleCallbackPtr)
Registers a callback that is called when a new progress instance is created.
size_t m_stepVal
The step value for output generation.
static ProgressTitleCallbackPtr m_titleCallback
static void setProgressTitleCallback(ProgressTitleCallbackPtr)
Registers a callback that is called when a new progress instance is created.
PacmanProgressBar(size_t max_val, string prefix="", size_t bar_length=60)
Ctor.
void operator+=(size_t n)
Increases the counter of performed by n.
size_t m_maxVal
The number of iterations.
ProgressBar(size_t max_val, string prefix="")
Ctor.
int m_percent
The current progress in percent.
static void setProgressCallback(ProgressCallbackPtr)
Registers a callback that is called with the new value when the percentage of the progress changed.
void print_bar()
Prints the output.
string m_prefix
The prefix string.
static PacmanProgressCallbackPtr m_progressCallback
static void setProgressCallback(ProgressCallbackPtr)
Registers a callback that is called with the new value when the percentage of the progress changed.
void operator++()
Increases the counter of performed iterations.
virtual ~PacmanProgressBar()
size_t m_maxVal
The number of iterations.
size_t m_currentVal
The current counter.
size_t m_currentVal
The current counter value.
string m_prefix
The prefix string.
size_t m_currentVal
The current counter.
void print_bar()
Prints the output.
void(* PacmanProgressCallbackPtr)(int)
A class to manage progress information output for process where the number of performed operations is...
int m_percent
The current progress in percent.
void operator++()
Increases the counter of performed iterations.
void(* ProgressCallbackPtr)(int)
A class to manage progress information output for process where the number of performed operations is...
boost::mutex m_mutex
A mutex object for counter increment (for parallel executions)
string m_prefix
The prefix string.
static PacmanProgressTitleCallbackPtr m_titleCallback
boost::mutex m_mutex
A mutex object for counter increment (for parallel executions)
boost::mutex m_mutex
A mutex object for counter increment (for parallel executions)
void print_progress()
Prints the current state.
void(* PacmanProgressTitleCallbackPtr)(string)
void(* ProgressTitleCallbackPtr)(string)
static ProgressCallbackPtr m_progressCallback
lvr2
Author(s): Thomas Wiemann 
, Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr 
autogenerated on Wed Mar 2 2022 00:37:24