Public Member Functions
utilmm::smart::ref_count::hash_ptr< Ty, Hash > Struct Template Reference

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

#include <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:
TyThe type of pointed cell
HashA hash fucntor for Ty
Author:
Frédéric Py <fpy@laas.fr>

Definition at line 29 of file uniq_memory.hh.


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:
argA 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:


utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Mon Oct 6 2014 03:17:02