ITK  5.4.0
Insight Toolkit
Public Types | Public Member Functions | List of all members
itk::StructHashFunction< TInput > Class Template Reference

#include <itkStructHashFunction.h>

Detailed Description

template<typename TInput>
class itk::StructHashFunction< TInput >

Generic hash function for an arbitrary struct (or class).

This regards the input key as a string of bytes, and applies a hash function similar to one that has been used in perl. If the data in the input key has pointers to other classes, then the function will be hashing on the value of the pointer itself, not on the data it points to. It is imagined that this function will be used more for structs (with fully exposed data) than for general classes.

Definition at line 40 of file itkStructHashFunction.h.

Public Types

using InputType = TInput
using Self = StructHashFunction

Public Member Functions

IdentifierType operator() (const InputType &key) const

Member Typedef Documentation

◆ InputType

template<typename TInput >
using itk::StructHashFunction< TInput >::InputType = TInput

Input type

Definition at line 47 of file itkStructHashFunction.h.

◆ Self

template<typename TInput >
using itk::StructHashFunction< TInput >::Self = StructHashFunction

Standard class type aliases.

Definition at line 44 of file itkStructHashFunction.h.

Member Function Documentation

◆ operator()()

template<typename TInput >
IdentifierType itk::StructHashFunction< TInput >::operator() ( const InputType key) const

Definition at line 55 of file itkStructHashFunction.h.

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