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

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

Public Attributes

std::time_t creationtime
 A variable which stores the creation time of each object. More...
 
unsigned long hashhits
 The number of successful attempts to identify an object in a hashing table. More...
 
unsigned long hashmisses
 The number of unsuccessful attempts to identify an object in a hashing table. More...
 
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. More...
 

Detailed Description

This is a small class used only to collect and display statistics on how successful the hashing procedures were.

Definition at line 425 of file pointset.h.

Constructor & Destructor Documentation

◆ psethashstat()

chomp::homology::psethashstat::psethashstat ( )
inline

The constructor.

Definition at line 450 of file pointset.h.

451{
452 std::time (&creationtime);
453 hashhits = 0;
454 hashmisses = 0;
455 rehashcount = 0;
456 return;
457} /* psethashstat::psethashstat */
std::time_t creationtime
A variable which stores the creation time of each object.
Definition: pointset.h:432
unsigned long hashmisses
The number of unsuccessful attempts to identify an object in a hashing table.
Definition: pointset.h:440
unsigned long hashhits
The number of successful attempts to identify an object in a hashing table.
Definition: pointset.h:436
unsigned long rehashcount
The number of times the size of the hashing table was changed and all the elements had to be put in t...
Definition: pointset.h:444

References creationtime, hashhits, hashmisses, and rehashcount.

Member Data Documentation

◆ creationtime

std::time_t chomp::homology::psethashstat::creationtime

A variable which stores the creation time of each object.

Definition at line 432 of file pointset.h.

Referenced by psethashstat().

◆ hashhits

unsigned long chomp::homology::psethashstat::hashhits

The number of successful attempts to identify an object in a hashing table.

Definition at line 436 of file pointset.h.

Referenced by psethashstat().

◆ hashmisses

unsigned long chomp::homology::psethashstat::hashmisses

The number of unsuccessful attempts to identify an object in a hashing table.

Definition at line 440 of file pointset.h.

Referenced by psethashstat().

◆ rehashcount

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 444 of file pointset.h.

Referenced by psethashstat().


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