From 4b8bad3d711f39db84f094edf83c5496a3f02cd6 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 21 Nov 2006 12:23:13 +0000 Subject: Wow, craziness. Part way through working on the confpair system I got some sudden insperation and completely redid Hash. Now everything but delete is implemented, including typesafe iterators and more. It's really cool, and everyone should check it out and start using it right away! --- src/staticstring.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/staticstring.h') diff --git a/src/staticstring.h b/src/staticstring.h index 61501bf..1ff3f63 100644 --- a/src/staticstring.h +++ b/src/staticstring.h @@ -3,7 +3,7 @@ #include #include "serializable.h" -//#include "hashable.h" +#include "hashable.h" /** * Simple string managing class. Allows for dynamically allocated string data @@ -12,7 +12,7 @@ * and making accessing meta-info like length fast and reliable as well. *@author Mike Buland */ -class StaticString : public Serializable//, public Hashable +class StaticString : public Serializable, public Hashable { public: StaticString(); @@ -51,6 +51,7 @@ public: virtual void serialize( class Serializer &ar ); virtual unsigned long int getHashCode(); + virtual bool compareForHash( Hashable &other ); private: char *lpStr; -- cgit v1.2.3