Instantiator
Generate c++ template instantiations
Loading...
Searching...
No Matches
ProgressBar Class Reference

#include <IO/ProgressBar.hpp>

Collaboration diagram for ProgressBar:
[legend]

Public Member Functions

 ProgressBar (int tasks=100, const std::string &fill_done="█", const std::string &fill_do="-", ProgressStyle style=DefaultStyle)
 
int numTasks () const
 
void step (std::string message="")
 
void update (int curr, std::string message="")
 

Private Member Functions

void draw (std::string message="") const
 

Private Attributes

int tasks = 100
 
std::string fill_done = "█"
 
std::string fill_do = "-"
 
ProgressStyle style
 
int curr = 0
 
double scaling
 

Detailed Description

Definition at line 31 of file ProgressBar.hpp.

Constructor & Destructor Documentation

◆ ProgressBar()

ProgressBar::ProgressBar ( int tasks = 100,
const std::string & fill_done = "█",
const std::string & fill_do = "-",
ProgressStyle style = DefaultStyle )
inline

Definition at line 44 of file ProgressBar.hpp.

Member Function Documentation

◆ draw()

void ProgressBar::draw ( std::string message = "") const
private

Definition at line 20 of file ProgressBar.cpp.

◆ numTasks()

int ProgressBar::numTasks ( ) const
inline

Definition at line 53 of file ProgressBar.hpp.

◆ step()

void ProgressBar::step ( std::string message = "")

Definition at line 8 of file ProgressBar.cpp.

◆ update()

void ProgressBar::update ( int curr,
std::string message = "" )

Definition at line 14 of file ProgressBar.cpp.

Member Data Documentation

◆ curr

int ProgressBar::curr = 0
private

Definition at line 40 of file ProgressBar.hpp.

◆ fill_do

std::string ProgressBar::fill_do = "-"
private

Definition at line 36 of file ProgressBar.hpp.

◆ fill_done

std::string ProgressBar::fill_done = "█"
private

Definition at line 35 of file ProgressBar.hpp.

◆ scaling

double ProgressBar::scaling
private

Definition at line 41 of file ProgressBar.hpp.

◆ style

ProgressStyle ProgressBar::style
private

Definition at line 38 of file ProgressBar.hpp.

◆ tasks

int ProgressBar::tasks = 100
private

Definition at line 34 of file ProgressBar.hpp.


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