This is a small class used to gather and display hashing statistics for the hashing tables in the class "hashedset". More...
#include <hashsets.h>
Public Member Functions | |
hashstat () | |
The constructor. | |
Public Attributes | |
std::time_t | creationtime |
The creation time of the hashed set. | |
unsigned long | hashhits |
The number of times that an element was found in the hashing table. | |
unsigned long | hashmisses |
The number of times that an element was not found in the hashing table, because that entry was used for another element. | |
unsigned long | rehashcount |
The number of rehashing the table when the size of the hashing table was changed and all the elements had to be hashed again. |
This is a small class used to gather and display hashing statistics for the hashing tables in the class "hashedset".
Definition at line 68 of file hashsets.h.
chomp::homology::hashstat::hashstat | ( | ) | [inline] |
The constructor.
Definition at line 93 of file hashsets.h.
References creationtime, hashhits, hashmisses, and rehashcount.
{ std::time (&creationtime); hashhits = 0; hashmisses = 0; rehashcount = 0; return; } /* hashstat::hashstat */
std::time_t chomp::homology::hashstat::creationtime |
The creation time of the hashed set.
Definition at line 75 of file hashsets.h.
Referenced by hashstat().
unsigned long chomp::homology::hashstat::hashhits |
The number of times that an element was found in the hashing table.
Definition at line 79 of file hashsets.h.
Referenced by hashstat().
unsigned long chomp::homology::hashstat::hashmisses |
The number of times that an element was not found in the hashing table, because that entry was used for another element.
Definition at line 83 of file hashsets.h.
Referenced by hashstat().
unsigned long chomp::homology::hashstat::rehashcount |
The number of rehashing the table when the size of the hashing table was changed and all the elements had to be hashed again.
Definition at line 87 of file hashsets.h.
Referenced by hashstat().