BmnRoot 26.10.0-233-gb9bbe585
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnSimpleProgressBar Class Reference

#include <BmnSimpleProgressBar.h>

Public Member Functions

 BmnSimpleProgressBar ()=default
void Init ()
void Tick ()
void Clear ()

Private Member Functions

void Print ()

Private Attributes

bool show {false}
int done {0}
std::string bar {"\r [ ] "}
std::mutex mtx

Detailed Description

Definition at line 19 of file BmnSimpleProgressBar.h.

Constructor & Destructor Documentation

◆ BmnSimpleProgressBar()

BmnSimpleProgressBar::BmnSimpleProgressBar ( )
inlinedefault

Member Function Documentation

◆ Clear()

void BmnSimpleProgressBar::Clear ( )
inline

Definition at line 36 of file BmnSimpleProgressBar.h.

References show.

Referenced by BmnAlignReport::Draw(), expdata(), expdataNN(), histo(), histoGL(), Init(), BmnAlignTestTask::Make(), and tracks3d().

Here is the caller graph for this function:

◆ Init()

void BmnSimpleProgressBar::Init ( )
inline

Definition at line 42 of file BmnSimpleProgressBar.h.

References bar, Clear(), done, i, Print(), and show.

Referenced by BmnAlignReport::Draw(), expdata(), expdataNN(), histo(), histoGL(), BmnAlignTestTask::Make(), and tracks3d().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Print()

void BmnSimpleProgressBar::Print ( )
inlineprivate

Definition at line 27 of file BmnSimpleProgressBar.h.

References bar, and done.

Referenced by Init(), and Tick().

Here is the caller graph for this function:

◆ Tick()

void BmnSimpleProgressBar::Tick ( )
inline

Definition at line 52 of file BmnSimpleProgressBar.h.

References bar, done, mtx, Print(), and show.

Here is the call graph for this function:

Member Data Documentation

◆ bar

std::string BmnSimpleProgressBar::bar {"\r [ ] "}
private

Definition at line 24 of file BmnSimpleProgressBar.h.

Referenced by Init(), Print(), and Tick().

◆ done

int BmnSimpleProgressBar::done {0}
private

Definition at line 23 of file BmnSimpleProgressBar.h.

Referenced by Init(), Print(), and Tick().

◆ mtx

std::mutex BmnSimpleProgressBar::mtx
private

Definition at line 25 of file BmnSimpleProgressBar.h.

Referenced by Tick().

◆ show

bool BmnSimpleProgressBar::show {false}
private

Definition at line 22 of file BmnSimpleProgressBar.h.

Referenced by Clear(), Init(), and Tick().


The documentation for this class was generated from the following file: