The class Deque is the base class of the stack and queue. The name “Deque” was derived from “Double-ended Queue” - a double-ended queue. You can add elements to the beginning and the end of a request and read elements from both ends. The class Deque contains elements of type Variant.
| Property | Type | Meaning |
|---|---|---|
| Size | Integer (Read-Only) | Number of elements of the Deque |
| IsEmpty | Boolean (Read-Only) | True, if there are no elements in the deque, otherwise wrong |
| Method | Meaning |
|---|---|
| Clear () | Remove all elements |
| PushFront (vElement) | Attaching an element to the beginning of the Deque |
| PushBack (vElement) | Attaching an element to the end of the Deque |
| PopFront () | Remove and return the first element |
| PopBack () | Remove and return the last element |
| PeekFront () | Returns the first element without removing it |
| PeekBack () | Returns the last element without removing it |