The Original CHomP Software
Public Member Functions | Public Attributes | List of all members
chomp::homology::hashstat Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ hashstat()

chomp::homology::hashstat::hashstat ( )
inline

The constructor.

Definition at line 101 of file hashsets.h.

102{
103 std::time (&creationtime);
104 hashhits = 0;
105 hashmisses = 0;
106 rehashcount = 0;
107 return;
108} /* hashstat::hashstat */
unsigned long hashhits
The number of times that an element was found in the hashing table.
Definition: hashsets.h:87
unsigned long hashmisses
The number of times that an element was not found in the hashing table, because that entry was used f...
Definition: hashsets.h:91
std::time_t creationtime
The creation time of the hashed set.
Definition: hashsets.h:83
unsigned long rehashcount
The number of rehashing the table when the size of the hashing table was changed and all the elements...
Definition: hashsets.h:95

References creationtime, hashhits, hashmisses, and rehashcount.

Member Data Documentation

◆ creationtime

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().

◆ hashhits

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().

◆ hashmisses

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().

◆ rehashcount

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().


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