diff options
author | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-04-23 04:43:59 +0000 |
---|---|---|
committer | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-04-23 04:43:59 +0000 |
commit | a7c03cabf931b077d70c6f80ec02c7728a429f49 (patch) | |
tree | 61d38d262d43ac77fc2ad94c9e7e850cd5607622 /ace/Functor.h | |
parent | 2aa7b10780ad7c670f588dce4ec341351a0646aa (diff) | |
download | ATCD-a7c03cabf931b077d70c6f80ec02c7728a429f49.tar.gz |
ChangeLogTag:Sat Apr 22 20:53:11 2000 Darrell Brunsch <brunsch@uci.edu>
Diffstat (limited to 'ace/Functor.h')
-rw-r--r-- | ace/Functor.h | 178 |
1 files changed, 16 insertions, 162 deletions
diff --git a/ace/Functor.h b/ace/Functor.h index 15ac688d797..bce51209ff6 100644 --- a/ace/Functor.h +++ b/ace/Functor.h @@ -171,217 +171,71 @@ public: // @@ DONE ADDING HASHES FOR ACE TYPES ACE_TEMPLATE_SPECIALIZATION -class ACE_Export ACE_Hash<const char *> +class ACE_Export ACE_Hash<const ACE_TCHAR *> { // = TITLE // Function object for hashing a const string public: - u_long operator () (const char *t) const; + u_long operator () (const ACE_TCHAR *t) const; // Calls ACE::hash_pjw }; ACE_TEMPLATE_SPECIALIZATION -class ACE_Export ACE_Hash<char *> +class ACE_Export ACE_Hash<ACE_TCHAR *> { // = TITLE // Function object for hashing a string public: - u_long operator () (const char *t) const; + u_long operator () (const ACE_TCHAR *t) const; // Calls ACE::hash_pjw }; -#if !defined (ACE_HAS_WCHAR_TYPEDEFS_CHAR) ACE_TEMPLATE_SPECIALIZATION -class ACE_Export ACE_Hash<const wchar_t *> -{ - // = TITLE - // Function object for hashing a const wide string -public: - u_long operator () (const wchar_t *t) const; - // Calls ACE::hash_pjw -}; - -ACE_TEMPLATE_SPECIALIZATION -class ACE_Export ACE_Hash<wchar_t *> -{ - // = TITLE - // Function object for hashing a wide string -public: - u_long operator () (const wchar_t *t) const; - // Calls ACE::hash_pjw -}; -#endif /* ! ACE_HAS_WCHAR_TYPEDEFS_CHAR */ - -#if !defined (ACE_HAS_WCHAR_TYPEDEFS_USHORT) -ACE_TEMPLATE_SPECIALIZATION -class ACE_Export ACE_Hash<const ACE_USHORT16 *> -{ - // = TITLE - // Function object for hashing a const wide string -public: - u_long operator () (const ACE_USHORT16 *t) const; - // Calls ACE::hash_pjw -}; - -ACE_TEMPLATE_SPECIALIZATION -class ACE_Export ACE_Hash<ACE_USHORT16 *> -{ - // = TITLE - // Function object for hashing a wide string -public: - u_long operator () (const ACE_USHORT16 *t) const; - // Calls ACE::hash_pjw -}; -#endif /* ! ACE_HAS_WCHAR_TYPEDEFS_USHORT */ - -ACE_TEMPLATE_SPECIALIZATION -class ACE_Export ACE_Equal_To<const char *> +class ACE_Export ACE_Equal_To<const ACE_TCHAR *> { // = TITLE // Function object for determining whether two const strings are equal. public: - int operator () (const char *lhs, - const char *rhs) const; + int operator () (const ACE_TCHAR *lhs, + const ACE_TCHAR *rhs) const; // Simply calls ACE_OS::strcmp }; ACE_TEMPLATE_SPECIALIZATION -class ACE_Export ACE_Equal_To<char *> +class ACE_Export ACE_Equal_To<ACE_TCHAR *> { // = TITLE // Function object for determining whether two non-const // strings are equal. public: - int operator () (const char *lhs, - const char *rhs) const; - // Simply calls ACE_OS::strcmp -}; - -#if !defined (ACE_HAS_WCHAR_TYPEDEFS_CHAR) -ACE_TEMPLATE_SPECIALIZATION -class ACE_Export ACE_Equal_To<const wchar_t *> -{ - // = TITLE - // Function object for determining whether two const wide - // strings are equal. -public: - int operator () (const wchar_t *lhs, - const wchar_t *rhs) const; - // Simply calls ACE_OS::strcmp -}; - -ACE_TEMPLATE_SPECIALIZATION -class ACE_Export ACE_Equal_To<wchar_t *> -{ - // = TITLE - // Function object for determining whether two wide strings are equal. -public: - int operator () (const wchar_t *lhs, - const wchar_t *rhs) const; - // Simply calls ACE_OS::strcmp -}; -#endif /* ! ACE_HAS_WCHAR_TYPEDEFS_CHAR */ - -#if !defined (ACE_HAS_WCHAR_TYPEDEFS_USHORT) -ACE_TEMPLATE_SPECIALIZATION -class ACE_Export ACE_Equal_To<const ACE_USHORT16 *> -{ - // = TITLE - // Function object for determining whether two const wide - // strings are equal. -public: - int operator () (const ACE_USHORT16 *lhs, - const ACE_USHORT16 *rhs) const; - // Simply calls ACE_OS::strcmp -}; - -ACE_TEMPLATE_SPECIALIZATION -class ACE_Export ACE_Equal_To<ACE_USHORT16 *> -{ - // = TITLE - // Function object for determining whether two wide strings are equal. -public: - int operator () (const ACE_USHORT16 *lhs, - const ACE_USHORT16 *rhs) const; + int operator () (const ACE_TCHAR *lhs, + const ACE_TCHAR *rhs) const; // Simply calls ACE_OS::strcmp }; -#endif /* ! ACE_HAS_WCHAR_TYPEDEFS_USHORT */ ACE_TEMPLATE_SPECIALIZATION -class ACE_Export ACE_Less_Than<const char *> +class ACE_Export ACE_Less_Than<const ACE_TCHAR *> { // = TITLE // Function object for determining whether the first const string // is less than the second const string. public: - int operator () (const char *lhs, - const char *rhs) const; + int operator () (const ACE_TCHAR *lhs, + const ACE_TCHAR *rhs) const; // Simply calls ACE_OS::strcmp }; ACE_TEMPLATE_SPECIALIZATION -class ACE_Export ACE_Less_Than<char *> +class ACE_Export ACE_Less_Than<ACE_TCHAR *> { // = TITLE // Function object for determining whether the first string // is less than the second string. public: - int operator () (const char *lhs, - const char *rhs) const; - // Simply calls ACE_OS::strcmp -}; - -#if !defined (ACE_HAS_WCHAR_TYPEDEFS_CHAR) -ACE_TEMPLATE_SPECIALIZATION -class ACE_Export ACE_Less_Than<const wchar_t *> -{ - // = TITLE - // Function object for determining whether the first const wide string - // is less than the second const wide string. -public: - int operator () (const wchar_t *lhs, - const wchar_t *rhs) const; - // Simply calls ACE_OS::strcmp -}; - -ACE_TEMPLATE_SPECIALIZATION -class ACE_Export ACE_Less_Than<wchar_t *> -{ - // = TITLE - // Function object for determining whether the first wide string - // is less than the second wide string. -public: - int operator () (const wchar_t *lhs, - const wchar_t *rhs) const; - // Simply calls ACE_OS::strcmp -}; -#endif /* ! ACE_HAS_WCHAR_TYPEDEFS_CHAR */ - -#if !defined (ACE_HAS_WCHAR_TYPEDEFS_USHORT) -ACE_TEMPLATE_SPECIALIZATION -class ACE_Export ACE_Less_Than<const ACE_USHORT16 *> -{ - // = TITLE - // Function object for determining whether the first const wide string - // is less than the second const wide string. -public: - int operator () (const ACE_USHORT16 *lhs, - const ACE_USHORT16 *rhs) const; - // Simply calls ACE_OS::strcmp -}; - -ACE_TEMPLATE_SPECIALIZATION -class ACE_Export ACE_Less_Than<ACE_USHORT16 *> -{ - // = TITLE - // Function object for determining whether the first wide string - // is less than the second wide string. -public: - int operator () (const ACE_USHORT16 *lhs, - const ACE_USHORT16 *rhs) const; + int operator () (const ACE_TCHAR *lhs, + const ACE_TCHAR *rhs) const; // Simply calls ACE_OS::strcmp }; -#endif /* ! ACE_HAS_WCHAR_TYPEDEFS_USHORT */ #if defined (__ACE_INLINE__) #include "ace/Functor.i" |