$search

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

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:
Ty The type of pointed cells
Equal equality 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:
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:
 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