Functor_String.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // $Id: Functor_String.inl 80826 2008-03-04 14:51:23Z wotte $
00004 
00005 #include "ace/ACE.h"
00006 #include "ace/String_Base.h"
00007 
00008 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00009 
00010 ACE_INLINE unsigned long
00011 ACE_Hash<ACE_CString>::operator () (const ACE_CString &t) const
00012 {
00013   return t.hash ();
00014 }
00015 
00016 
00017 ACE_INLINE int
00018 ACE_Equal_To<ACE_CString>::operator () (const ACE_CString &lhs,
00019                                         const ACE_CString &rhs) const
00020 {
00021   return lhs == rhs;
00022 }
00023 
00024 ACE_INLINE int
00025 ACE_Less_Than<ACE_CString>::operator () (const ACE_CString &lhs,
00026                                          const ACE_CString &rhs) const
00027 {
00028   return (lhs < rhs);
00029 }
00030 
00031 
00032 #if defined (ACE_USES_WCHAR)
00033 ACE_INLINE unsigned long
00034 ACE_Hash<ACE_WString>::operator () (const ACE_WString &t) const
00035 {
00036   return t.hash ();
00037 }
00038 
00039 
00040 ACE_INLINE int
00041 ACE_Equal_To<ACE_WString>::operator () (const ACE_WString &lhs,
00042                                         const ACE_WString &rhs) const
00043 {
00044   return lhs == rhs;
00045 }
00046 
00047 ACE_INLINE int
00048 ACE_Less_Than<ACE_WString>::operator () (const ACE_WString &lhs,
00049                                          const ACE_WString &rhs) const
00050 {
00051   return (lhs < rhs);
00052 }
00053 
00054 #endif /*ACE_USES_WCHAR*/
00055 
00056 ACE_END_VERSIONED_NAMESPACE_DECL

Generated on Tue Feb 2 17:18:39 2010 for ACE by  doxygen 1.4.7