OOOrderedDictionary.
More...
#import "OOOrderedDictionary.h"
- (void) addObject: |
|
(id) |
obj |
|
- (NSUInteger) countByEnumeratingWithState: |
|
(NSFastEnumerationState *) |
state |
objects: |
|
(__unsafe_unretained id *) |
stackbuf |
count: |
|
(NSUInteger) |
len |
|
|
| |
- (NSInteger) indexForKey: |
|
(id) |
key |
|
Get the index for the object associated with the key specified.
- Parameters
-
[in] | key | the key for the object |
- Returns
- the index for the object associated with key
- (NSInteger) indexForValue: |
|
(id) |
value |
|
Get the index for the object specified.
- Parameters
-
[in] | value | the object to get the index for |
- Returns
- the index for the object
- (id) initWithCapacity: |
|
(NSUInteger) |
numItems |
|
- (id) initWithKeySelector: |
|
(SEL) |
keySelector |
|
Initialize a OOOrderedDictionary.
- Parameters
-
[in] | keySelector | the selector to use to fetch the key from objects added (using OrderedDicitonary.addObject:) |
- Returns
- the initialized OOOrderedDictionary
- (NSArray *) keysInRange: |
|
(NSRange) |
range |
|
Get an ordered array of keys in the given range.
- Parameters
-
[in] | range | the range of keys to get |
- Returns
- an NSArray with the keys within the range
- (id) objectAtIndex: |
|
(NSInteger) |
index |
|
Get the object at the index specified.
- Parameters
-
[in] | index | the index of the object to fetch |
- Returns
- the object at index
- (id) objectForKey: |
|
(id) |
key |
|
Get the object associated with the key specified.
- Parameters
-
[in] | key | the key for the object |
- Returns
- the object associated with key
- (NSArray *) objectsInRange: |
|
(NSRange) |
range |
|
Get an ordered array of object in the given range.
- Parameters
-
[in] | range | the range of objects to get |
- Returns
- an NSArray with the objects within the range
- (void) removeObject: |
|
(id) |
obj |
|
Remove all occurrences in the array of a given object.
- Parameters
-
[in] | obj | The object to remove from the array |
- (void) removeObjectAtIndex: |
|
(NSInteger) |
index |
|
Removes the object at index.
- Parameters
-
[in] | index | The index from which to remove the object in the array. The value must not exceed the bounds of the array. |
- (void) removeObjectIdenticalTo: |
|
(id) |
obj |
|
Removes all occurrences of a given object in the array.
- Parameters
-
[in] | obj | The object to remove from the array |
- (void) setObject: |
|
(id) |
obj |
forKey: |
|
(id) |
key |
|
|
| |
Add an object to the OOOrderedDictionary.
- Parameters
-
[in] | obj | the object to add |
[in] | key | the key for the object |
- (void) sortUsingSelector: |
|
(SEL) |
comparator |
|
Sort the array’s elements in ascending order, as determined by the comparison method specified by a given selector.
- Parameters
-
[in] | comparator | A selector that specifies the comparison method to use to compare elements in the array |
- The comparator message is sent to each object in the array and has as its single argument another object in the array. The comparator method should return NSOrderedAscending if the array is smaller than the argument, NSOrderedDescending if the array is larger than the argument, and NSOrderedSame if they are equal.
- (void) sortWithOptions: |
|
(NSSortOptions) |
opts |
usingComparator: |
|
(NSComparator) |
cmptr |
|
|
| |
Sort the array using the specified options and the comparison method specified by a given NSComparator Block.
- Parameters
-
[in] | opts | A bitmask that specifies the options for the sort (whether it should be performed concurrently and whether it should be performed stably) |
[in] | cmptr | A comparator block |
The documentation for this class was generated from the following file: