17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# import "ObjFW.h"
#else
# import <ObjFW/ObjFW.h>
#endif
OF_ASSUME_NONNULL_BEGIN
@interface OTOrderedDictionary: OFDictionary
{
OFArray *_keys;
OFArray *_objects;
}
@end
OF_ASSUME_NONNULL_END
|
>
>
>
>
>
>
>
>
|
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# import "ObjFW.h"
#else
# import <ObjFW/ObjFW.h>
#endif
OF_ASSUME_NONNULL_BEGIN
/**
* @brief A dictionary that enumerates keys and objects in the same order they
* were specified during initialization.
*
* @warning This class is only for testing! It is slow and only to be used to
* test extensions of OFDictionary, for example serializations such as
* JSON, where it is desirable to compare to an expected output.
*/
@interface OTOrderedDictionary: OFDictionary
{
OFArray *_keys;
OFArray *_objects;
}
@end
OF_ASSUME_NONNULL_END
|