OOOrderedDictionary.h
1 
13 #import <Foundation/Foundation.h>
14 
15 @interface OOOrderedDictionary : NSObject <NSFastEnumeration> {
16 @private
17  SEL keySelector;
18 }
19 
20 @property(nonatomic, assign) SEL keySelector;
27 - (id)initWithKeySelector:(SEL)keySelector;
28 
34 - (id)initWithCapacity:(NSUInteger)numItems;
35 
42 - (id)initWithCapacity:(NSUInteger)numItems keySelector:(SEL)keySelector;
43 
49 - (void)setObject:(id)obj forKey:(id)key;
50 
55 - (void)addObject:(id)obj;
56 
62 - (id)objectForKey:(id)key;
63 
69 - (NSInteger)indexForKey:(id)key;
70 
76 - (NSInteger)indexForValue:(id)value;
77 
83 - (id)objectAtIndex:(NSInteger)index;
84 
89 - (void)removeObject:(id)obj;
90 
95 - (void)removeObjectAtIndex:(NSInteger)index;
96 
101 - (void)removeObjectIdenticalTo:(id)obj;
102 
109 - (void)sortUsingSelector:(SEL)comparator;
110 
116 - (void)sortWithOptions:(NSSortOptions)opts usingComparator:(NSComparator)cmptr;
117 
122 - (NSUInteger)count;
123 
129 - (NSArray *)objectsInRange:(NSRange)range;
130 
136 - (NSArray *)keysInRange:(NSRange)range;
137 
141 - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(__unsafe_unretained id *)stackbuf count:(NSUInteger)len;
142 
143 @end
NSUInteger count()
Get the number of objects in the OOOrderedDictionary.
OOOrderedDictionary.
Definition: OOOrderedDictionary.h:15