diff options
Diffstat (limited to 'docs/man/man3/InAddr_HashComp.3')
-rw-r--r-- | docs/man/man3/InAddr_HashComp.3 | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/docs/man/man3/InAddr_HashComp.3 b/docs/man/man3/InAddr_HashComp.3 index 284f16016..38bfe4075 100644 --- a/docs/man/man3/InAddr_HashComp.3 +++ b/docs/man/man3/InAddr_HashComp.3 @@ -1,36 +1,35 @@ -.TH "InAddr_HashComp" 3 "13 May 2005" "InspIRCd" \" -*- nroff -*- +.TH "InAddr_HashComp" 3 "15 May 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME -InAddr_HashComp \- +InAddr_HashComp \- This class returns true if two in_addr structs match. + +.PP .SH SYNOPSIS .br .PP +\fC#include <hashcomp.h>\fP +.PP .SS "Public Member Functions" .in +1c .ti -1c .RI "bool \fBoperator()\fP (const in_addr &s1, const in_addr &s2) const" .br +.RI "\fIThe operator () does the actual comparison in hash_map. \fP" .in -1c -.SH "Member Function Documentation" +.SH "Detailed Description" .PP -.SS "bool InAddr_HashComp::operator() (const in_addr & s1, const in_addr & s2) const\fC [inline]\fP" +This class returns true if two in_addr structs match. + +Checking is done by copying both into a size_t then doing a numeric comparison of the two. .PP -Definition at line 171 of file modules.cpp. +Definition at line 71 of file hashcomp.h. +.SH "Member Function Documentation" +.PP +.SS "bool InAddr_HashComp::operator() (const in_addr & s1, const in_addr & s2) const" .PP -.nf -172 { -173 size_t q; -174 size_t p; -175 -176 memcpy(&q,&s1,sizeof(size_t)); -177 memcpy(&p,&s2,sizeof(size_t)); -178 -179 return (q == p); -180 } -.fi - +The operator () does the actual comparison in hash_map. .SH "Author" .PP |