Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::StructHashFunction< TInput > Class Template Reference

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

#include <itkStructHashFunction.h>

List of all members.

Public Types

typedef StructHashFunction Self
typedef TInput InputType

Public Member Functions

unsigned int operator() (const InputType &key) const


Detailed Description

template<class 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 20 of file itkStructHashFunction.h.


Member Typedef Documentation

template<class TInput>
typedef TInput itk::StructHashFunction< TInput >::InputType
 

Input type Definition at line 28 of file itkStructHashFunction.h.

Referenced by itk::StructHashFunction< TInput >::operator()().

template<class TInput>
typedef StructHashFunction itk::StructHashFunction< TInput >::Self
 

Standard class typedefs. Definition at line 25 of file itkStructHashFunction.h.


Member Function Documentation

template<class TInput>
unsigned int itk::StructHashFunction< TInput >::operator() const InputType key  )  const [inline]
 

Definition at line 37 of file itkStructHashFunction.h.

References itk::StructHashFunction< TInput >::InputType.


The documentation for this class was generated from the following file:
Generated at Sat Mar 31 02:40:02 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000