This is a small class used only to collect and display statistics on how successful the hashing procedures were. More...
#include <pointset.h>
Public Member Functions | |
psethashstat () | |
The constructor. | |
Public Attributes | |
std::time_t | creationtime |
A variable which stores the creation time of each object. | |
unsigned long | hashhits |
The number of successful attempts to identify an object in a hashing table. | |
unsigned long | hashmisses |
The number of unsuccessful attempts to identify an object in a hashing table. | |
unsigned long | rehashcount |
The number of times the size of the hashing table was changed and all the elements had to be put in the table again. |
This is a small class used only to collect and display statistics on how successful the hashing procedures were.
Definition at line 411 of file pointset.h.
chomp::homology::psethashstat::psethashstat | ( | ) | [inline] |
The constructor.
Definition at line 436 of file pointset.h.
References creationtime, hashhits, hashmisses, and rehashcount.
{ std::time (&creationtime); hashhits = 0; hashmisses = 0; rehashcount = 0; return; } /* psethashstat::psethashstat */
std::time_t chomp::homology::psethashstat::creationtime |
A variable which stores the creation time of each object.
Definition at line 418 of file pointset.h.
Referenced by psethashstat().
unsigned long chomp::homology::psethashstat::hashhits |
The number of successful attempts to identify an object in a hashing table.
Definition at line 422 of file pointset.h.
Referenced by psethashstat().
unsigned long chomp::homology::psethashstat::hashmisses |
The number of unsuccessful attempts to identify an object in a hashing table.
Definition at line 426 of file pointset.h.
Referenced by psethashstat().
unsigned long chomp::homology::psethashstat::rehashcount |
The number of times the size of the hashing table was changed and all the elements had to be put in the table again.
Definition at line 430 of file pointset.h.
Referenced by psethashstat().