The Original CHomP Software
|
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. More... | |
Public Attributes | |
std::time_t | creationtime |
The creation time of the hashed set. More... | |
unsigned long | hashhits |
The number of times that an element was found in the hashing table. More... | |
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. More... | |
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. More... | |
This is a small class used to gather and display hashing statistics for the hashing tables in the class "hashedset".
Definition at line 76 of file hashsets.h.
|
inline |
The constructor.
Definition at line 101 of file hashsets.h.
References creationtime, hashhits, hashmisses, and rehashcount.
std::time_t chomp::homology::hashstat::creationtime |
The creation time of the hashed set.
Definition at line 83 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 87 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 91 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 95 of file hashsets.h.
Referenced by hashstat().