root/src/map.h

Revision 5, 466 bytes (checked in by nick, 3 years ago)
Line 
1#ifndef _MAP_H_
2#define _MAP_H_
3
4class map
5{
6public:
7        int create(int passed_size);
8        void empty(int from, int to);
9        int destroy(void);
10        int resize(int newsize);
11        int insert(char *string);
12        int remove(char *string);
13        int lookup(char *string);
14
15
16        char *reverse(int pos);
17        void sub_ref(int pos);
18
19private:
20        struct hash_struct
21        {
22                unsigned int refcount;
23
24                int pos;
25                char *string;
26
27                time_t time;
28        };
29
30        struct hash_struct *tab;
31        int size;
32
33        OAHash *tab_hash;
34};
35#endif
Note: See TracBrowser for help on using the browser.