A priority queue. More...
Instance Methods | |
(T) | - dequeue |
Dequeues an item. More... | |
(void) | - enqueueWithItem: |
Enqueues an item. More... | |
(bool) | - existsWithItem: |
Checks if an item exists in the queue. More... | |
(instancetype) | - initWithComparer: |
Initializes a new instance of the FMLiveSwitchPriorityQueue`1 class. More... | |
(instancetype) | - initWithComparerBlock: |
Initializes a new instance of the FMLiveSwitchPriorityQueue`1 class. More... | |
(bool) | - isConsistent |
Determines whether the queue is consistent. More... | |
(T) | - peek |
Class Methods | |
(FMLiveSwitchPriorityQueue *) | + priorityQueueWithComparer: |
Initializes a new instance of the FMLiveSwitchPriorityQueue`1 class. More... | |
(FMLiveSwitchPriorityQueue *) | + priorityQueueWithComparerBlock: |
Initializes a new instance of the FMLiveSwitchPriorityQueue`1 class. More... | |
Protected Attributes | |
__pad0__: NSObject- (int) count | |
A priority queue.
- T dequeue |
Dequeues an item.
- (void) enqueueWithItem: | (T) | item |
Enqueues an item.
item | The item. |
- (bool) existsWithItem: | (T) | item |
Checks if an item exists in the queue.
item | The item. |
- (instancetype) initWithComparer: | (FMLiveSwitchFunction2< T, T, id > *) | comparer |
Initializes a new instance of the FMLiveSwitchPriorityQueue`1 class.
comparer | The comparer. |
- (instancetype) initWithComparerBlock: | (FMLiveSwitchCompareResult(^)(T, T)) | comparerBlock |
Initializes a new instance of the FMLiveSwitchPriorityQueue`1 class.
comparerBlock | The comparer. |
- (bool) isConsistent |
Determines whether the queue is consistent.
- T peek |
+ (FMLiveSwitchPriorityQueue*) priorityQueueWithComparer: | (FMLiveSwitchFunction2< T, T, id > *) | comparer |
Initializes a new instance of the FMLiveSwitchPriorityQueue`1 class.
comparer | The comparer. |
+ (FMLiveSwitchPriorityQueue*) priorityQueueWithComparerBlock: | (FMLiveSwitchCompareResult(^)(T, T)) | comparerBlock |
Initializes a new instance of the FMLiveSwitchPriorityQueue`1 class.
comparerBlock | The comparer. |
|
protected |