string_hash.h

Go to the documentation of this file.
00001 #ifndef STRING_HASH_CLASS
00002 #define STRING_HASH_CLASS
00003 
00004 /*****************************************************************************\
00005 *                                                                             *
00006 *  Name   : string_hash                                                       *
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 "hash_table.h"
00019 #include "string_hasher.h"
00020 
00021 #include <basis/astring.h>
00022 
00023 namespace structures {
00024 
00026 
00027 template <class contents>
00028 class string_hash : public hash_table<basis::astring, contents>
00029 {
00030 public:
00031   string_hash(int estimated_elements)
00032       : hash_table<basis::astring, contents>(astring_hasher(), estimated_elements) {}
00033 
00034   ~string_hash() {}
00035 };
00036 
00037 } //namespace.
00038 
00039 #endif // outer guard.
00040 
Generated on Sat Jan 28 04:22:28 2012 for hoople2 project by  doxygen 1.6.3