Public Member Functions
utilmm::smart::ref_count::eq_ptr< Ty, Equal > Struct Template Reference

In depth pointer equality functor. More...

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

Definition at line 60 of file uniq_memory.hh.


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:
aa const pointer
ba 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:


utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Thu Jan 2 2014 11:38:32