Public Member Functions | Public Attributes

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>

List of all members.

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.

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 68 of file hashsets.h.


Constructor & Destructor Documentation

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 */


Member Data Documentation

The creation time of the hashed set.

Definition at line 75 of file hashsets.h.

Referenced by hashstat().

The number of times that an element was found in the hashing table.

Definition at line 79 of file hashsets.h.

Referenced by hashstat().

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

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


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