A double-ended queue storing LONG values. Values can be added or removed from either end.
A double-ended queue storing LONG values. Values can be added or removed from either end.
Kind: Container | Category: H-Lib Native Containers
PBXB64 Status: AVAILABLE
PBXB64 Certification: [CERTIFIED TESTED]
This H-Lib container is implemented in native C support code and exposed through PBXB64 BASIC container syntax. The examples below are focused usage patterns; keep handles valid, release each container with its Final method, and check counts or return values when a method can fail.
| Method | Signature | Returns | Description |
|---|---|---|---|
| New | d.New | LNDEQUE | Allocate a new empty deque. |
| Final | d.Final | none | Free the deque. |
| Validate | d.Validate | LONG | Non-zero if the handle is valid. |
| Clear | d.Clear | none | Remove all values. |
| Count | d.Count | LONG | Number of values in the deque. |
| PushFront | d.PushFront value | none | Insert a value at the front. |
| PushBack | d.PushBack value | none | Insert a value at the back. |
| PopFront | d.PopFront | QUAD | Remove and return the front value. |
| PopBack | d.PopBack | QUAD | Remove and return the back value. |
| PeekFront | d.PeekFront | QUAD | Return the front value without removing it. |
| PeekBack | d.PeekBack | QUAD | Return the back value without removing it. |
| Empty | d.Empty | LONG | Non-zero if the deque is empty. |
Validation evidence: H-Lib container behavior is exercised by registered BASIC container validation programs and the embedded H-Lib object set used by the single-EXE validation gate.
Diese Referenzseite soll durch ein fokussiertes Compile- oder Laufzeitbeispiel belegt sein. Das Beispiel soll Eingaben, erwartete Ausgabe oder Exit-Code und erforderliche Windows-Ressourcen oder Include-Dateien nennen.
Allgemeine Übersichtsseiten sollten trotzdem sagen, welche Familie gemeint ist, welche konkreten Befehlsseiten die Implementierung tragen und welche Formen nur der Navigation dienen. So bleibt die Seite detailliert genug, ohne so zu tun, als wäre sie eine vollständige Befehlsreferenz.
LOCAL d AS LNDEQUE d = d.New d.PushBack 10 d.PushFront 5 PRINT d.PopBack ' 10 PRINT d.PopFront ' 5 d.Final