Reference

ACE_Pointer_Hash(3)

Function object for hashing pointers

NAME

ACE_Pointer_Hash - Function object for hashing pointers

SYNOPSIS

#include <ace/Functor_T.h>
template<class TYPE>
class ACE_Pointer_Hash
{
  public:
    u_long operator () (TYPE t) const;
};

DESCRIPTION

Templatized classes for implementing function objects that are used in various places in ACE. There are currently two major categories of function objects in ACE: GOF Command Pattern objects, and STL-style functors for comparison of container elements. The command objects are invoked via an execute method, while the STL-style functors are invoked via an operator() method.

PUBLIC MEMBERS

u_long operator () (TYPE t) const;

Simply returns t.

AUTHOR

Chris Gill [email protected]

Based on Command Pattern implementations originally done by

Carlos O'Ryan [email protected], Douglas C. Schmidt [email protected], and Sergio Flores-Gaitan [email protected]

and on STL-style functor implementations originally done by

Irfan Pyarali [email protected]

LIBRARY

ace