]> err.no Git - sope/blob - sope-gdl1/GDLAccess/EORecordDictionary.h
added missing inline pathes
[sope] / sope-gdl1 / GDLAccess / EORecordDictionary.h
1 /* 
2 */
3
4 #ifndef __EORecordDictionary_h__
5 #define __EORecordDictionary_h__
6
7 #import <Foundation/NSDictionary.h>
8
9 typedef struct _EORecordDictionaryEntry {
10     unsigned hash;
11     id       key;
12     id       value;
13 } EORecordDictionaryEntry;
14
15 @interface EORecordDictionary : NSDictionary
16 {
17     unsigned char           count;
18     EORecordDictionaryEntry entries[1];
19 }
20
21 /* Allocating and Initializing an Dictionary */
22 - (id)initWithObjects:(id*)objects forKeys:(id*)keys 
23   count:(unsigned int)count;
24 - (id)initWithDictionary:(NSDictionary*)dictionary;
25
26 /* Accessing keys and values */
27 - (id)objectForKey:(id)aKey;
28 - (unsigned int)count;
29 - (NSEnumerator *)keyEnumerator;
30
31 @end /* EORecordDictionary */
32
33 #import <Foundation/NSEnumerator.h>
34
35 @interface _EORecordDictionaryKeyEnumerator : NSEnumerator
36 {
37     NSDictionary *dict;
38     EORecordDictionaryEntry *currentEntry;
39     unsigned char count;
40 }
41
42 - (id)initWithDictionary:(EORecordDictionary *)_dict
43   firstEntry:(EORecordDictionaryEntry *)_firstEntry
44   count:(unsigned char)_count;
45
46 - (id)nextObject;
47
48 @end
49
50 #endif