31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
}
- (void)addObject: (id)object
{
[dictionary OF_setObject: [OFNumber numberWithSize: 1]
forKey: object
copyKey: NO];
mutations++;
}
- (void)removeObject: (id)object
{
[dictionary removeObjectForKey: object];
mutations++;
}
- (void)makeImmutable
{
object_setClass(self, [OFSet_hashtable class]);
}
@end
|
<
<
<
<
|
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
}
- (void)addObject: (id)object
{
[dictionary OF_setObject: [OFNumber numberWithSize: 1]
forKey: object
copyKey: NO];
}
- (void)removeObject: (id)object
{
[dictionary removeObjectForKey: object];
}
- (void)makeImmutable
{
object_setClass(self, [OFSet_hashtable class]);
}
@end
|