Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Functor_T.i

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 // $Id: Functor_T.i,v 1.1.1.3 2003/02/21 18:36:32 chad Exp $
00003 
00004 template <class TYPE> ACE_INLINE u_long
00005 ACE_Hash<TYPE>::operator () (const TYPE &t) const
00006 {
00007   return t.hash ();
00008 }
00009 
00010 template <class TYPE> ACE_INLINE u_long
00011 ACE_Pointer_Hash<TYPE>::operator () (TYPE t) const
00012 {
00013 #if defined (ACE_WIN64)
00014   // The cast below is legit... we only want a hash, and need not convert
00015   // the hash back to a pointer.
00016 #  pragma warning(push)
00017 #  pragma warning(disable : 4311)   /* Truncate pointer to u_long */
00018 #endif /* ACE_WIN64 */
00019   return ACE_reinterpret_cast (u_long, t);
00020 #if defined (ACE_WIN64)
00021 #  pragma warning(pop)
00022 #endif /* ACE_WIN64 */
00023 }
00024 
00025 template <class TYPE> ACE_INLINE int
00026 ACE_Equal_To<TYPE>::operator () (const TYPE &lhs,
00027                                  const TYPE &rhs) const
00028 {
00029   return lhs == rhs;
00030 }
00031 
00032 template <class TYPE> ACE_INLINE int
00033 ACE_Less_Than<TYPE>::operator () (const TYPE &lhs,
00034                                   const TYPE &rhs) const
00035 {
00036   return lhs < rhs ? 1 : 0;
00037 }

Generated on Mon Jun 16 11:19:44 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002