libUTL++
utl::HashFunction Class Referenceabstract

Hash function. More...

#include <Hashtable.h>

Public Member Functions

virtual ~HashFunction ()
 Virtual destructor. More...
 
virtual HashFunctionclone () const =0
 Create new instance. More...
 
virtual size_t hash (const Object *object, size_t size) const
 Compute the hash function for the given object. More...
 

Detailed Description

Hash function.

Definition at line 30 of file Hashtable.h.

Constructor & Destructor Documentation

◆ ~HashFunction()

virtual utl::HashFunction::~HashFunction ( )
inlinevirtual

Virtual destructor.

Definition at line 34 of file Hashtable.h.

References utl::clone().

Member Function Documentation

◆ clone()

virtual HashFunction* utl::HashFunction::clone ( ) const
pure virtual

Create new instance.

◆ hash()

virtual size_t utl::HashFunction::hash ( const Object object,
size_t  size 
) const
inlinevirtual

Compute the hash function for the given object.

Definition at line 43 of file Hashtable.h.


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