CGAL 5.1 - Profiling tools, Hash Map, Union-find, Modifiers

#include <Concepts/UniqueHashFunction.h>

Definition

UniqueHashFunction is a concept for a hash function with unique hash values. An instance hash for a model of the UniqueHashFunction concept is a function object. It maps objects of its domain type Key to the integral image type std::size_t. The image values have to be unique for all keys in the domain type Key.

Has Models:
CGAL::Handle_hash_function
See also
CGAL::Unique_hash_map<Key,Data,UniqueHashFunction>

Types

typedef std::size_t result_type
 type of the hash value. More...
 

Creation

 UniqueHashFunction (const UniqueHashFunction &hash2)
 copy constructor. More...
 
UniqueHashFunctionoperator= (const UniqueHashFunction &hash2)
 assignment. More...
 

Operations

std::size_t operator() (const Key &key)
 returns a unique hash value for the key value. More...
 

Member Typedef Documentation

◆ result_type

typedef std::size_t UniqueHashFunction::result_type

type of the hash value.

Constructor & Destructor Documentation

◆ UniqueHashFunction()

UniqueHashFunction::UniqueHashFunction ( const UniqueHashFunction hash2)

copy constructor.

Member Function Documentation

◆ operator()()

std::size_t UniqueHashFunction::operator() ( const Key &  key)

returns a unique hash value for the key value.

◆ operator=()

UniqueHashFunction& UniqueHashFunction::operator= ( const UniqueHashFunction hash2)

assignment.