AmpGen
2.1
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
private
:
13
size_t
m_width;
14
int
m_lastPercent;
15
std::string m_context;
16
std::string m_lastMessage = {
""
};
17
bool
m_finished = {
false
};
18
};
19
}
20
21
#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 Tue Feb 11 2025 14:01:01 for AmpGen by
1.13.2