string_hasher.h

Go to the documentation of this file.
00001 #ifndef STRING_HASHER_CLASS
00002 #define STRING_HASHER_CLASS
00003 
00004 /*****************************************************************************\
00005 *                                                                             *
00006 *  Name   : string_hasher                                                     *
00007 *  Author : Chris Koeritz                                                     *
00008 *                                                                             *
00009 *******************************************************************************
00010 * Copyright (c) 2001-$now By Author.  This program is free software; you can  *
00011 * redistribute it and/or modify it under the terms of the GNU General Public  *
00012 * License as published by the Free Software Foundation; either version 2 of   *
00013 * the License or (at your option) any later version.  This is online at:      *
00014 *     http://www.fsf.org/copyleft/gpl.html                                    *
00015 * Please send any updates to: fred@gruntose.com                               *
00016 \*****************************************************************************/
00017 
00018 #include "data_structure_dll.h"
00019 #include "hash_table.h"
00020 
00022 
00024 class DATA_STRUCTURE_CLASS_STYLE string_hasher : public hashing_algorithm
00025 {
00026 public:
00027   virtual u_int hash(const void *key_data, int key_length) const;
00029 
00034   virtual hashing_algorithm *clone() const;
00036 };
00037 
00039 
00040 class DATA_STRUCTURE_CLASS_STYLE istring_hasher : public hashing_algorithm
00041 {
00042 public:
00043   virtual u_int hash(const void *key_data, int key_length) const;
00045 
00046   virtual hashing_algorithm *clone() const;
00048 };
00049 
00050 #endif
00051 

Generated on Fri Nov 21 04:29:42 2008 for HOOPLE Libraries by  doxygen 1.5.1