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/structInAddr__HashComp.html | 40 +++++++++++++++-------------- 1 file changed, 21 insertions(+), 19 deletions(-) (limited to 'docs/module-doc/structInAddr__HashComp.html') diff --git a/docs/module-doc/structInAddr__HashComp.html b/docs/module-doc/structInAddr__HashComp.html index 8e0f35bb7..4aebb1d97 100644 --- a/docs/module-doc/structInAddr__HashComp.html +++ b/docs/module-doc/structInAddr__HashComp.html @@ -4,14 +4,27 @@
-Public Member Functions | |
| bool | operator() (const in_addr &s1, const in_addr &s2) const |
| The operator () does the actual comparison in hash_map. | |
+Checking is done by copying both into a size_t then doing a numeric comparison of the two. +
+ +
+Definition at line 71 of file hashcomp.h.
| ) | - const [inline] |
+ const | |||
- -
-Definition at line 171 of file modules.cpp. +The operator () does the actual comparison in hash_map.
-
00172 {
-00173 size_t q;
-00174 size_t p;
-00175
-00176 memcpy(&q,&s1,sizeof(size_t));
-00177 memcpy(&p,&s2,sizeof(size_t));
-00178
-00179 return (q == p);
-00180 }
-
1.3.3
--
cgit v1.3.1-10-gc9f91