class Graphlb::DataStructures::Queue(A)
- Graphlb::DataStructures::Queue(A)
- Reference
- Object
Overview
A Queue Data Structure formed using an Array A Queue follows Last-in-First-out
Defined in:
graphlb/data_structures/queue.crConstructors
-
.new
Initializes the Queue with empty
Instance Method Summary
-
#empty?
returns true if the Queue is empty
-
#pop
pops the value that is first inserted
-
#push(val)
pushes the value present inside the val into the Queue
-
#top
returns the first-most element in the queue
-
#values
returns all the values that are present in the Queue