User Tools

Site Tools


k7:k7.3:k7.3.5:start

7.3.5 Deque (gb. data)

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.

7.3.5.1 Properties

PropertyTypeMeaning
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

7.3.5.2 Methods of a deque-object

MethodMeaning
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
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.
k7/k7.3/k7.3.5/start.txt · Last modified: by 127.0.0.1