$search

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

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:
Ty The type of pointed cell
Hash A 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:
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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Fri Mar 1 16:28:53 2013