ace::HashVector< _StType, _HashFunc >::items_compare Class Reference

Function object for equal to comparison of two N-gram pointers (one passed as constructor param, second as unary operator() param). More...

List of all members.

Public Member Functions

 items_compare (_StType look_for)
bool operator() (_StType ptr) const

Private Attributes

const _StType _look_for
 Searched item (pointer to).


Detailed Description

template<class _StType, class _HashFunc>
class ace::HashVector< _StType, _HashFunc >::items_compare

Function object for equal to comparison of two N-gram pointers (one passed as constructor param, second as unary operator() param).

We want to compare pointed values, not pointers themself, so this simple functor helps us to do it.


Constructor & Destructor Documentation

template<class _StType, class _HashFunc>
ace::HashVector< _StType, _HashFunc >::items_compare::items_compare ( _StType  look_for  )  [inline]

Parameters:
look_for Pointer to searched item.


Member Function Documentation

template<class _StType, class _HashFunc>
bool ace::HashVector< _StType, _HashFunc >::items_compare::operator() ( _StType  ptr  )  const [inline]

Parameters:
ptr Item to compare with searched one.
Returns:
Bool, if item pointed to by ptr is equal to item pointed to by instance pointer.


Member Data Documentation

template<class _StType, class _HashFunc>
const _StType ace::HashVector< _StType, _HashFunc >::items_compare::_look_for [private]

Searched item (pointer to).


The documentation for this class was generated from the following file:

Generated on Wed Aug 6 23:25:50 2008 for PACE by  doxygen 1.5.6