FMLiveSwitchRingBuffer Class Reference

Instance Methods

(void) - enqueueWithItem:
 
(instancetype) - initWithCapacity:bufferFactory:
 
(instancetype) - initWithCapacity:bufferFactoryBlock:
 
(bool) - isEmpty
 
(bool) - isFull
 
(T) - peek
 
(NSMutableArray *) - toArray
 

Class Methods

(FMLiveSwitchRingBuffer *) + ringBufferWithCapacity:bufferFactory:
 
(FMLiveSwitchRingBuffer *) + ringBufferWithCapacity:bufferFactoryBlock:
 

Protected Attributes

 __pad0__: NSObject- (T) dequeue
 

Method Documentation

◆ enqueueWithItem:

- (void) enqueueWithItem: (T)  item

◆ initWithCapacity:bufferFactory:

- (instancetype) initWithCapacity: (int)  capacity
bufferFactory: (FMLiveSwitchFunction1< id, NSMutableArray * > *)  bufferFactory 

◆ initWithCapacity:bufferFactoryBlock:

- (instancetype) initWithCapacity: (int)  capacity
bufferFactoryBlock: (NSMutableArray *(^)(int))  bufferFactoryBlock 

◆ isEmpty

- (bool) isEmpty

◆ isFull

- (bool) isFull

◆ peek

- T peek

◆ ringBufferWithCapacity:bufferFactory:

+ (FMLiveSwitchRingBuffer*) ringBufferWithCapacity: (int)  capacity
bufferFactory: (FMLiveSwitchFunction1< id, NSMutableArray * > *)  bufferFactory 

◆ ringBufferWithCapacity:bufferFactoryBlock:

+ (FMLiveSwitchRingBuffer*) ringBufferWithCapacity: (int)  capacity
bufferFactoryBlock: (NSMutableArray *(^)(int))  bufferFactoryBlock 

◆ toArray

- (NSMutableArray*) toArray

Member Data Documentation

◆ __pad0__

- __pad0__
protected