Inherits from NSObject
Declared in BFDataStructures.h

Overview

Primitive Queue implementation

Tasks

Instance Methods

dequeue

- (BOOL)dequeue
Discussion

Dequeue the first element

Return Value

Returns YES if dequeue an element, otherwise NO

Declared In

BFDataStructures.h

description

- (NSString *_Nonnull)description
Discussion

Describe the Queue

Return Value

Describe the Queue

Declared In

BFDataStructures.h

emptyQueue

- (void)emptyQueue
Discussion

Remove all the elements in the Queue

Declared In

BFDataStructures.h

enqueue:

- (void)enqueue:(id _Nonnull)object
Discussion

Adds an element to the Queue

Parameters

object

The element to add

Declared In

BFDataStructures.h

init

- (_Nonnull instancetype)init
Discussion

Initialize the Queue

Return Value

Returns the Queue object

Declared In

BFDataStructures.h

top

- (id _Nullable)top
Discussion

Returns the element on the top of the Queue

Return Value

Returns the element on the top of the Queue

Declared In

BFDataStructures.h