Startseite › Datentypen › H-Lib-Container Hilfe zum PBXB64-Compiler

H-Lib Set

A sorted set of unique LONG values backed by an AVL tree.

Kategorie: H-Lib-Container | Zertifizierung: [ZERTIFIZIERT GETESTET]

Beschreibung

A sorted set of unique LONG values backed by an AVL tree.

Kind: Container | Category: H-Lib Native Containers

PBXB64 Status: AVAILABLE

PBXB64 Certification: [CERTIFIED TESTED]

Description

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.

Methods

MethodSignatureReturnsDescription
News.NewLNSETAllocate a new empty set.
Finals.FinalnoneFree the set.
Validates.ValidateLONGNon-zero if the handle is valid.
Clears.ClearnoneRemove all values.
Counts.CountLONGNumber of values in the set.
Adds.Add valuenoneInsert a value if not present.
Removes.Remove valuenoneRemove a value.
Containss.Contains valueLONGNon-zero if the value is present.
Firsts.FirstQUADReturn the smallest value (0 if empty).
Nexts.Next valueQUADReturn the next larger value (0 if none).
Emptys.EmptyLONGNon-zero if the set is empty.
ToArrays.ToArrayLNARRReturn a new LNARR containing all values sorted.

Validation Evidence

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.

PBXB64-Prüfung

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.

Übersichtshinweise

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.

Beispiel

LOCAL s AS LNSET
s = s.New
s.Add 3
s.Add 1
s.Add 2
PRINT s.Contains 2 ' non-zero
PRINT s.First      ' 1
s.Final