AmpGen
2.1
Toggle main menu visibility
Loading...
Searching...
No Matches
ProgressBar.h
Go to the documentation of this file.
1
#ifndef AMPGEN_PROGRESSBAR_H
2
#define AMPGEN_PROGRESSBAR_H
3
4
#include <string>
5
namespace
AmpGen
{
6
class
ProgressBar
{
7
public
:
8
ProgressBar
(
const
size_t
&
width
,
const
std::string &context);
9
~ProgressBar
();
10
void
print
(
const
double
&percentage,
const
std::string &message =
""
);
11
void
finish
();
12
13
private
:
14
size_t
m_width;
15
int
m_lastPercent;
16
std::string m_context;
17
std::string m_lastMessage = {
""
};
18
bool
m_finished = {
false
};
19
};
20
}
21
22
#endif
AmpGen::ProgressBar::ProgressBar
ProgressBar(const size_t &width, const std::string &context)
AmpGen::ProgressBar::print
void print(const double &percentage, const std::string &message="")
AmpGen::ProgressBar::~ProgressBar
~ProgressBar()
AmpGen::ProgressBar::finish
void finish()
AmpGen
Definition
AddCPConjugate.h:2
AmpGen::width
Expression width(const Expression &s, const Expression &s1, const Expression &s2, const Expression &mass, const Expression &width, const Expression &radius, unsigned int L, DebugSymbols *dbexpressions=nullptr)
AmpGen
ProgressBar.h
Generated on
for AmpGen by
1.17.0