Overview
Context
Changes
Modified src/Makefile
from [97d6293a2a]
to [a36117ea93].
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
+
|
include ../extra.mk
LIB = ${LIB_PREFIX}objfw${LIB_SUFFIX}
LIB_MAJOR = 1
LIB_MINOR = 0
SRCS = OFArray.m \
OFAutoreleasePool.m \
OFDictionary.m \
OFExceptions.m \
OFHashes.m \
OFFile.m \
OFList.m \
OFNumber.m \
OFObject.m \
OFString.m \
|
︙ | | |
Added src/OFDictionary.h version [0e40b77f27].
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
/*
* Copyright (c) 2008 - 2009
* Jonathan Schleifer <js@webkeks.org>
*
* All rights reserved.
*
* This file is part of libobjfw. It may be distributed under the terms of the
* Q Public License 1.0, which can be found in the file LICENSE included in
* the packaging of this file.
*/
#import "OFObject.h"
#import "OFList.h"
/**
* The OFDictionary class provides a class for using hash tables.
*/
@interface OFDictionary: OFObject
{
OFList **data;
size_t size;
}
/**
* Creates a new OFDictionary, defaulting to a 12 bit hash.
*
* \return A new autoreleased OFDictionary
*/
+ dictionary;
/*
* Creates a new OFDictionary with a hash of N bits.
*
* \param bits The size of the hash to use
* \return A new autoreleased OFDictionary
*/
+ dictionaryWithHashSize: (int)hashsize;
/**
* Initializes an already allocated OFDictionary, defaulting to a 12 bit hash.
*
* \return An initialized OFDictionary
*/
- init;
/*
* Initializes an already allocated OFDictionary with a hash of N bits.
*
* \param bits The size of the hash to use
* \return An initialized OFDictionary
*/
- initWithHashSize: (int)hashsize;
/*
* Sets a key to an object. A key can be any object.
*
* \param key The key to set
* \param obj The object to set the key to
*/
- set: (OFObject*)key
to: (OFObject*)obj;
/*
* \param key The key whose object should be returned
* \return The object for the given key
*/
- get: (OFObject*)key;
/*
* Remove the object with the given key from the dictionary.
*
* \param key The key whose object should be removed
*/
- remove: (OFObject*)key;
@end
|
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Added src/OFDictionary.m version [8614525c94].