FMLiveSwitchPriorityQueue Class Reference

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
 

Detailed Description

A priority queue.

Method Documentation

◆ dequeue

- T dequeue

Dequeues an item.

◆ enqueueWithItem:

- (void) enqueueWithItem: (T)  item

Enqueues an item.

Parameters
itemThe item.

◆ existsWithItem:

- (bool) existsWithItem: (T)  item

Checks if an item exists in the queue.

Parameters
itemThe item.

◆ initWithComparer:

- (instancetype) initWithComparer: (FMLiveSwitchFunction2< T, T, id > *)  comparer

Initializes a new instance of the FMLiveSwitchPriorityQueue`1 class.

Parameters
comparerThe comparer.

◆ initWithComparerBlock:

- (instancetype) initWithComparerBlock: (FMLiveSwitchCompareResult(^)(T, T))  comparerBlock

Initializes a new instance of the FMLiveSwitchPriorityQueue`1 class.

Parameters
comparerBlockThe comparer.

◆ isConsistent

- (bool) isConsistent

Determines whether the queue is consistent.

◆ peek

- T peek

◆ priorityQueueWithComparer:

+ (FMLiveSwitchPriorityQueue*) priorityQueueWithComparer: (FMLiveSwitchFunction2< T, T, id > *)  comparer

Initializes a new instance of the FMLiveSwitchPriorityQueue`1 class.

Parameters
comparerThe comparer.

◆ priorityQueueWithComparerBlock:

+ (FMLiveSwitchPriorityQueue*) priorityQueueWithComparerBlock: (FMLiveSwitchCompareResult(^)(T, T))  comparerBlock

Initializes a new instance of the FMLiveSwitchPriorityQueue`1 class.

Parameters
comparerBlockThe comparer.

Member Data Documentation

◆ __pad0__

- __pad0__
protected