Main Page   Namespace List   Alphabetical List   Compound List   File List   Compound Members   File Members  

Percent Class Reference

Gestion of integer percents to see the simulation progress. More...

#include <percent.h>

List of all members.

Public Methods

 Percent ()
 Constructor. More...

 ~Percent ()
 Destructor. More...

void create (const int total, const int step)
 Calculate the new percent value at each iteration. More...

bool is_new ()
 Return true if new value if different of old value, false otherwise. More...

void progress ()
 Write the percent progression. More...

void update ()
 Update of percent values. More...

percent give_new ()
 Give the new percent value. More...

percent give_old ()
 Give the old percent value. More...


Private Attributes

percent old
percent nw


Detailed Description

Gestion of integer percents to see the simulation progress.


Constructor & Destructor Documentation

Percent::Percent  
 

Constructor.

Percent::~Percent  
 

Destructor.


Member Function Documentation

void Percent::create const int    total,
const int    step
[inline]
 

Calculate the new percent value at each iteration.

Parameters:
total  an integer corresponding to the total number of data.
step  an integer corresponding to the current value of iteration.

percent Percent::give_new   [inline]
 

Give the new percent value.

percent Percent::give_old   [inline]
 

Give the old percent value.

bool Percent::is_new   [inline]
 

Return true if new value if different of old value, false otherwise.

void Percent::progress  
 

Write the percent progression.

void Percent::update   [inline]
 

Update of percent values.


Member Data Documentation

percent Percent::nw [private]
 

New percent value

percent Percent::old [private]
 

Old percent value


The documentation for this class was generated from the following files:
Generated on Tue Dec 10 12:44:22 2002 for PSI by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002