js-util

Home > rc-js-util > CircularFIFOStack

CircularFIFOStack class

Circular first in first out stack.

Signature:

export declare class CircularFIFOStack<TValue> implements IFIFOStack<TValue> 

Implements: IFIFOStack

Remarks

See ECircularStackOverflowMode for details of overflow behavior.

Constructors

Constructor Modifiers Description
(constructor)(capacity, mode)   Constructs a new instance of the CircularFIFOStack class

Methods

Method Modifiers Description
getCapacity()    
getIsEmpty()    
getRemainingCapacity()    
pop()   Remove the bottom element in the stack and return it.
push(value)   Pushes a value to the top of the stack (depending on mode).