Deque Class

Entisoft Tools 2.0 Object Library
Version 2.1 Build 208
<-- Previous || Index || Main || Topics || Next -->

Declarations Section, BreadthFirstSearchExample Sub, DepthFirstSearchExample Sub, Count Property, IsEmpty Property, Head Property, Tail Property, Name Property, Tag Property, AddHead Sub, AddHeadMulti Sub, AddTail Sub, AddTailMulti Sub, RemoveHead Function, RemoveHeadMulti Function, RemoveTail Function, RemoveTailMulti Function, RemoveAll Sub, QueueAdd Sub, QueueRemove Function, StackPush Sub, StackPop Function

Declarations Section
Breadth First Search Example Sub
Example of using the Deque as a Queue to perform a Breadth First Search.
Depth First Search Example Sub
Example of using the Deque as a Stack to perform a Depth First Search.
Count Property
Returns the number of items in the Deque.
Is Empty Property
Return True if the Deque is empty. Return False if the Deque contains one or more items.
Head Property
Return the Value at the Head of the Deque without removing the value from the Deque.
Tail Property
Return the Value at the Tail of the Deque without removing the value from the Deque.
Name Property
Assign a Name to this Deque. Return the Name of this Deque when the Name is not an Object. Return the Name of this Deque when the Name is an Object.
Tag Property
Assign a Tag to this Deque. The Tag can be any type of Data. Return the Tag of this Deque when the Tag is not an Object. Return the Tag of this Deque when the Tag is an Object.
Add Head Sub
Inserts a value at the head of the deque. Pushes a value onto a stack when the deque is being used as a stack.
Add Head Multi Sub
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.
Add Tail Sub
Inserts a value at the tail of the deque. Put a value into a queue when the deque is being used as a queue.
Add Tail Multi Sub
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.
Remove Head Function
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.
Remove Head Multi Function
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.
Remove Tail Function
Deletes the value at the tail of a deque and returns that value.
Remove Tail Multi Function
Deletes one or more values at the tail of a deque and returns them via the arguments.
Remove All Sub
Remove all of the items within the Deque.
Queue Add Sub
Add an item to the queue when the deque is being used as a queue. Same as AddTail.
Queue Remove Function
Remove an item from the queue when the deque is being used as a queue. Same as RemoveHead.
Stack Push Sub
Add an item to the stack when the deque is being used as a stack. Same as AddHead.
Stack Pop Function
Remove an item from the stack when the deque is being used as a stack. Same as RemoveHead.

This Windows-based ActiveX DLL provides many useful routines through its function-bearing and data structure classes. Consult the Help file for more information, or call us at 1-310-472-3736. For the latest news and files, visit our home page on the World Wide Web: http://www.entisoft.com

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.