HPCToolkit
TraceviewerServer::ProgressBar Class Reference

#include <ProgressBar.hpp>

Collaboration diagram for TraceviewerServer::ProgressBar:

Public Member Functions

 ProgressBar (string name, ulong tasksToComplete)
 
void incrementProgress (ulong tasks)
 
void incrementProgress ()
 
virtual ~ProgressBar ()
 

Private Types

typedef uint64_t ulong
 

Private Member Functions

void update ()
 

Private Attributes

int usableWidth
 
int colsFilled
 
ulong tasks
 
int tasksComplete
 
string label
 

Static Private Attributes

static const int DEFAULT_TERMINAL_WIDTH = 80
 

Detailed Description

Definition at line 68 of file ProgressBar.hpp.

Member Typedef Documentation

◆ ulong

typedef uint64_t TraceviewerServer::ProgressBar::ulong
private

Definition at line 70 of file ProgressBar.hpp.

Constructor & Destructor Documentation

◆ ProgressBar()

TraceviewerServer::ProgressBar::ProgressBar ( string  name,
ulong  tasksToComplete 
)

Definition at line 70 of file ProgressBar.cpp.

Here is the call graph for this function:

◆ ~ProgressBar()

TraceviewerServer::ProgressBar::~ProgressBar ( )
virtual

Definition at line 119 of file ProgressBar.cpp.

Member Function Documentation

◆ incrementProgress() [1/2]

void TraceviewerServer::ProgressBar::incrementProgress ( ulong  tasks)

Definition at line 86 of file ProgressBar.cpp.

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

◆ incrementProgress() [2/2]

void TraceviewerServer::ProgressBar::incrementProgress ( )

Call every time a task is completed

Definition at line 91 of file ProgressBar.cpp.

Here is the call graph for this function:

◆ update()

void TraceviewerServer::ProgressBar::update ( )
private

Definition at line 96 of file ProgressBar.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ colsFilled

int TraceviewerServer::ProgressBar::colsFilled
private

Definition at line 75 of file ProgressBar.hpp.

◆ DEFAULT_TERMINAL_WIDTH

const int TraceviewerServer::ProgressBar::DEFAULT_TERMINAL_WIDTH = 80
staticprivate

Definition at line 72 of file ProgressBar.hpp.

◆ label

string TraceviewerServer::ProgressBar::label
private

Definition at line 78 of file ProgressBar.hpp.

◆ tasks

ulong TraceviewerServer::ProgressBar::tasks
private

Definition at line 76 of file ProgressBar.hpp.

◆ tasksComplete

int TraceviewerServer::ProgressBar::tasksComplete
private

Definition at line 77 of file ProgressBar.hpp.

◆ usableWidth

int TraceviewerServer::ProgressBar::usableWidth
private

Definition at line 74 of file ProgressBar.hpp.


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