BPicture: Fix archive constructor.
[haiku.git] / src / add-ons / translators / gif / SFHash.h
blob1d92a518c20594da05ca1a1090a58d69faa1a88c
1 ////////////////////////////////////////////////////////////////////////////////
2 //
3 // File: SFHash.h
4 //
5 // Date: December 1999
6 //
7 // Author: Daniel Switkin
8 //
9 // Copyright 2003 (c) by Daniel Switkin. This file is made publically available
10 // under the BSD license, with the stipulations that this complete header must
11 // remain at the top of the file indefinitely, and credit must be given to the
12 // original author in any about box using this software.
14 ////////////////////////////////////////////////////////////////////////////////
16 // Additional authors: Stephan Aßmus, <superstippi@gmx.de>
17 // John Scipione, <jscipione@gmail.com>
19 #ifndef SFHASH_H
20 #define SFHASH_H
23 class HashItem {
24 friend class SFHash;
25 public:
26 unsigned int key;
27 private:
28 HashItem* next;
32 class SFHash {
33 public:
34 SFHash(int size = 4096);
35 virtual ~SFHash();
37 void AddItem(HashItem* item);
38 HashItem* GetItem(unsigned int key);
39 unsigned int CountItems();
40 HashItem* NextItem();
41 void Rewind();
43 bool fatalerror;
45 private:
46 int size;
47 int iterate_pos;
48 int iterate_depth;
50 HashItem** main_array;
54 #endif // SFHASH_H