From 4d5a17380bc71cabe544b41c7c8a26a292384f3d Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 15 May 2005 17:05:15 +0000 Subject: Added docs for hashcomp git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1396 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/hashcomp_8h-source.html | 97 +++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 docs/module-doc/hashcomp_8h-source.html (limited to 'docs/module-doc/hashcomp_8h-source.html') diff --git a/docs/module-doc/hashcomp_8h-source.html b/docs/module-doc/hashcomp_8h-source.html new file mode 100644 index 000000000..9314d0209 --- /dev/null +++ b/docs/module-doc/hashcomp_8h-source.html @@ -0,0 +1,97 @@ + + +InspIRCd: hashcomp.h Source File + + + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
+

hashcomp.h

Go to the documentation of this file.
00001 /*       +------------------------------------+
+00002  *       | Inspire Internet Relay Chat Daemon |
+00003  *       +------------------------------------+
+00004  *
+00005  *  Inspire is copyright (C) 2002-2005 ChatSpike-Dev.
+00006  *                       E-mail:
+00007  *                <brain@chatspike.net>
+00008  *                <Craig@chatspike.net>
+00009  *
+00010  * Written by Craig Edwards, Craig McLure, and others.
+00011  * This program is free but copyrighted software; see
+00012  *            the file COPYING for details.
+00013  *
+00014  * ---------------------------------------------------
+00015  */
+00016 
+00017 #ifndef _HASHCOMP_H_
+00018 #define _HASHCOMP_H_
+00019 
+00020 #include "inspircd_config.h"
+00021 
+00022 #ifdef GCC3
+00023 #include <ext/hash_map>
+00024 #else
+00025 #include <hash_map>
+00026 #endif
+00027 
+00028 #ifdef GCC3
+00029 #define nspace __gnu_cxx
+00030 #else
+00031 #define nspace std
+00032 #endif
+00033 
+00034 using namespace std;
+00035 
+00036 namespace nspace
+00037 {
+00038 #ifdef GCC34
+00039         template<> struct hash<in_addr>
+00040 #else
+00041         template<> struct nspace::hash<in_addr>
+00042 #endif
+00043         {
+00044                 size_t operator()(const struct in_addr &a) const;
+00045         };
+00046 #ifdef GCC34
+00047         template<> struct hash<string>
+00048 #else
+00049         template<> struct nspace::hash<string>
+00050 #endif
+00051         {
+00052                 size_t operator()(const string &s) const;
+00053         };
+00054 }
+00055 
+00060 struct StrHashComp
+00061 {
+00064         bool operator()(const string& s1, const string& s2) const;
+00065 };
+00066 
+00071 struct InAddr_HashComp
+00072 {
+00075         bool operator()(const in_addr &s1, const in_addr &s2) const;
+00076 };
+00077 
+00080 namespace irc
+00081 {
+00086         struct irc_char_traits : std::char_traits<char> {
+00087 
+00090                 static bool eq(char c1st, char c2nd);
+00091 
+00094                 static bool ne(char c1st, char c2nd);
+00095 
+00098                 static bool lt(char c1st, char c2nd);
+00099 
+00102                 static int compare(const char* str1, const char* str2, size_t n);
+00103 
+00106                 static const char* find(const char* s1, int  n, char c);
+00107         };
+00108 
+00111         typedef basic_string<char, irc_char_traits, allocator<char> > string;
+00112 }
+00113 
+00114 #endif
+

Generated on Sun May 15 17:02:05 2005 for InspIRCd by + +doxygen +1.3.3
+ + -- cgit v1.2.3