utilmm::smart::ref_count::hash_ptr< Ty, Hash > Struct Template Reference
[Smart pointers]

Special hash functor for utilmm::smart::ref_count::uniq_memory. More...

#include <utilmm/smart/bits/uniq_memory.hh>

List of all members.

Public Member Functions

size_t operator() (Ty const *arg) const
 Hashing call operator.


Detailed Description

template<typename Ty, class Hash>
struct utilmm::smart::ref_count::hash_ptr< Ty, Hash >

Special hash functor for utilmm::smart::ref_count::uniq_memory.

This functor is an hash functor used by the utilmm::smart::ref_count::uniq_memory class. To extract the hash value of the value pointed by a cont pointer

Parameters:
Ty The type of pointed cell
Hash A hash fucntor for Ty
Author:
Frédéric Py <fpy@laas.fr>

Member Function Documentation

template<typename Ty, class Hash>
size_t utilmm::smart::ref_count::hash_ptr< Ty, Hash >::operator() ( Ty const *  arg  )  const

Hashing call operator.

Parameters:
arg A cont pointer
This function compute the hash value of *arg

Returns:
The computed hash value
Precondition:
arg has to point to a valid cell


The documentation for this struct was generated from the following file:
Generated on Tue Feb 19 10:51:02 2008 for Util-- by doxygen 1.5.3
SourceForge.net Project Page