FreeRDP
OrderedDictionary.h
1 //
2 // OrderedDictionary.h
3 // OrderedDictionary
4 //
5 // Modified version (Added indexForKey/Value functions)
6 //
7 // Created by Matt Gallagher on 19/12/08.
8 // Copyright 2008 Matt Gallagher. All rights reserved.
9 //
10 // This software is provided 'as-is', without any express or implied
11 // warranty. In no event will the authors be held liable for any damages
12 // arising from the use of this software. Permission is granted to anyone to
13 // use this software for any purpose, including commercial applications, and to
14 // alter it and redistribute it freely, subject to the following restrictions:
15 //
16 // 1. The origin of this software must not be misrepresented; you must not
17 // claim that you wrote the original software. If you use this software
18 // in a product, an acknowledgment in the product documentation would be
19 // appreciated but is not required.
20 // 2. Altered source versions must be plainly marked as such, and must not be
21 // misrepresented as being the original software.
22 // 3. This notice may not be removed or altered from any source
23 // distribution.
24 //
25 
26 #import <Foundation/Foundation.h>
27 
28 @interface OrderedDictionary : NSMutableDictionary
29 {
30  NSMutableDictionary *dictionary;
31  NSMutableArray *array;
32 }
33 
34 - (void)insertObject:(id)anObject forKey:(id)aKey atIndex:(NSUInteger)anIndex;
35 - (id)keyAtIndex:(NSUInteger)anIndex;
36 - (NSUInteger)indexForValue:(id)value;
37 - (NSUInteger)indexForKey:(id)key;
38 - (NSEnumerator *)reverseKeyEnumerator;
39 
40 @end