Class Module
22 Members
Deque Class
Entisoft Tools 2.0 Object Library · Deque · 6 Functions · 6 Properties · 9 Subroutines
Declarations
Declarations
Deque (and Queue and Stack ) Data Structure Copyright 1998 Entisoft
Section
Count
Count
Returns the number of items in the Deque .
Property
Head
Head
Return the Value at the Head of the Deque without removing the value from the Deque .
Property
IsEmpty
Is Empty
Return True if the Deque is empty. Return False if the Deque contains one or more items.
Property
Name
Name
Assign a Name to this Deque .
Property
Tag
Tag
Assign a Tag to this Deque . The Tag can be any type of Data.
Property
Tail
Tail
Return the Value at the Tail of the Deque without removing the value from the Deque .
Property
QueueRemove
Queue Remove
Remove an item from the queue when the deque is being used as a queue. Same as RemoveHead .
Function
RemoveHead
Remove Head
Deletes the value at the head of a deque and returns that value via the argument. Pops a value off of the stack when a deque is being used as a stack. Get a value out of the queue when a deque is being used as a queue.
Function
RemoveHeadMulti
Remove Head Multi
Deletes one or more values at the head of a deque and returns them via the arguments. Pops values off of the stack when a deque is being used as a stack. Get values out of the queue when a deque is being used as a queue.
Function
RemoveTail
Remove Tail
Deletes the value at the tail of a deque and returns that value.
Function
RemoveTailMulti
Remove Tail Multi
Deletes one or more values at the tail of a deque and returns them via the arguments.
Function
StackPop
Stack Pop
Remove an item from the stack when the deque is being used as a stack. Same as RemoveHead .
Function
AddHead
Add Head
Inserts a value at the head of the deque. Pushes a value onto a stack when the deque is being used as a stack.
Sub
AddHeadMulti
Add Head Multi
Inserts one or more value at the head of the deque. Pushes the values onto a stack when the deque is being used as a stack.
Sub
AddTail
Add Tail
Inserts a value at the tail of the deque. Put a value into a queue when the deque is being used as a queue.
Sub
AddTailMulti
Add Tail Multi
Inserts one or more values at the tail of the deque. Puts the values into a queue when the deque is being used as a queue.
Sub
BreadthFirstSearchExample
Breadth First Search Example
Example of using the Deque as a Queue to perform a Breadth First Search.
Sub
DepthFirstSearchExample
Depth First Search Example
Example of using the Deque as a Stack to perform a Depth First Search.
Sub
QueueAdd
Queue Add
Add an item to the queue when the deque is being used as a queue. Same as AddTail .
Sub
RemoveAll
Remove All
Remove all of the items within the Deque .
Sub
StackPush
Stack Push
Add an item to the stack when the deque is being used as a stack. Same as AddHead .
Sub