summaryrefslogtreecommitdiff
path: root/src/staticstring.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-11-21 12:23:13 +0000
committerMike Buland <eichlan@xagasoft.com>2006-11-21 12:23:13 +0000
commit4b8bad3d711f39db84f094edf83c5496a3f02cd6 (patch)
treebbaf654af3e82e67544ae17f07b7fbe7d02ce0ec /src/staticstring.h
parent737b1aee54da9ff45a4fb6eb7e636eff9019128e (diff)
downloadlibbu++-4b8bad3d711f39db84f094edf83c5496a3f02cd6.tar.gz
libbu++-4b8bad3d711f39db84f094edf83c5496a3f02cd6.tar.bz2
libbu++-4b8bad3d711f39db84f094edf83c5496a3f02cd6.tar.xz
libbu++-4b8bad3d711f39db84f094edf83c5496a3f02cd6.zip
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!
Diffstat (limited to 'src/staticstring.h')
-rw-r--r--src/staticstring.h5
1 files changed, 3 insertions, 2 deletions
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 @@
3 3
4#include <string> 4#include <string>
5#include "serializable.h" 5#include "serializable.h"
6//#include "hashable.h" 6#include "hashable.h"
7 7
8/** 8/**
9 * Simple string managing class. Allows for dynamically allocated string data 9 * Simple string managing class. Allows for dynamically allocated string data
@@ -12,7 +12,7 @@
12 * and making accessing meta-info like length fast and reliable as well. 12 * and making accessing meta-info like length fast and reliable as well.
13 *@author Mike Buland 13 *@author Mike Buland
14 */ 14 */
15class StaticString : public Serializable//, public Hashable 15class StaticString : public Serializable, public Hashable
16{ 16{
17public: 17public:
18 StaticString(); 18 StaticString();
@@ -51,6 +51,7 @@ public:
51 virtual void serialize( class Serializer &ar ); 51 virtual void serialize( class Serializer &ar );
52 52
53 virtual unsigned long int getHashCode(); 53 virtual unsigned long int getHashCode();
54 virtual bool compareForHash( Hashable &other );
54 55
55private: 56private:
56 char *lpStr; 57 char *lpStr;