Home > rc-js-util > CircularFIFOStack
Circular first in first out stack.
Signature:
export declare class CircularFIFOStack<TValue> implements IFIFOStack<TValue>
Implements: IFIFOStack
See ECircularStackOverflowMode for details of overflow behavior.
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(capacity, mode) | Constructs a new instance of the CircularFIFOStack class |
| 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). |