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
|
* file.
*/
#include "config.h"
#include <string.h>
#import "OFMutableMapTableDictionary.h"
#import "OFMapTable.h"
#import "OFMapTableDictionary.h"
#import "OFEnumerationMutationException.h"
#import "OFOutOfRangeException.h"
@implementation OFMutableMapTableDictionary
+ (void)initialize
{
if (self == [OFMutableMapTableDictionary class])
[self inheritMethodsFromClass: [OFMapTableDictionary class]];
}
- (void)setObject: (id)object forKey: (id)key
{
[_mapTable setObject: object forKey: key];
}
|
|
|
|
|
|
|
|
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
|
* file.
*/
#include "config.h"
#include <string.h>
#import "OFConcreteMutableDictionary.h"
#import "OFConcreteDictionary.h"
#import "OFMapTable.h"
#import "OFEnumerationMutationException.h"
#import "OFOutOfRangeException.h"
@implementation OFConcreteMutableDictionary
+ (void)initialize
{
if (self == [OFConcreteMutableDictionary class])
[self inheritMethodsFromClass: [OFConcreteDictionary class]];
}
- (void)setObject: (id)object forKey: (id)key
{
[_mapTable setObject: object forKey: key];
}
|
59
60
61
62
63
64
65
66
67
68
|
exceptionWithObject: self];
}
}
#endif
- (void)makeImmutable
{
object_setClass(self, [OFMapTableDictionary class]);
}
@end
|
|
|
59
60
61
62
63
64
65
66
67
68
|
exceptionWithObject: self];
}
}
#endif
- (void)makeImmutable
{
object_setClass(self, [OFConcreteDictionary class]);
}
@end
|