utilmm::smart::ref_count::eq_ptr< Ty, Equal > Struct Template Reference
[Smart pointers]

In depth pointer equality functor. More...

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

List of all members.

Public Member Functions

bool operator() (Ty const *a, Ty const *b) const
 Call operator.


Detailed Description

template<typename Ty, class Equal>
struct utilmm::smart::ref_count::eq_ptr< Ty, Equal >

In depth pointer equality functor.

This functor is used by utilmm::smart::ref_count::uniq_memory to test if two pointers are pointing to equal cells.

Parameters:
Ty The type of pointed cells
Equal equality functor for Ty
Author:
Frédéric Py <fpy@laas.fr>

Member Function Documentation

template<typename Ty, class Equal>
bool utilmm::smart::ref_count::eq_ptr< Ty, Equal >::operator() ( Ty const *  a,
Ty const *  b 
) const

Call operator.

Parameters:
a a const pointer
b a const pointer
This function checks if the pointed values by a and b are equals

Returns:
Equal(*a, *b)
Precondition:
a and b must not be null pointers


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