Adt¶
Documentation for
std-library/ksp/data-structures/adt.ksp
Import¶
import "_IVLS/std-library/ksp/data-structures/adt.ksp"Node: Stl.ADT¶
Uses: Init
Constants¶
| Constant | Value | Description |
|---|---|---|
adt.TASK_FAIL |
-123456789 |
integer |
adt.TASK_SUCCESS |
123456789 |
integer |
adt.NULL |
-39867414 |
integer |
adt.HEAP_TYPE_MIN |
0 |
integer |
adt.HEAP_TYPE_MAX |
1 |
integer |
API¶
| Name | Description |
|---|---|
node Stl.ADT |
Establishes the ADT subsystem namespace and shared constants. |
Abstract Data Types (ADT)¶
node Stl.ADT¶
Callbacks: Init
Establishes the ADT subsystem namespace and shared constants.
Side effects:
| Name | Type | Purpose |
|---|---|---|
adt.TASK_FAIL |
const int | Return value for failed operations |
adt.TASK_SUCCESS |
const int | Return value for successful operations |
adt.NULL |
const int | Sentinel for empty or invalid references |
adt.HEAP_TYPE_MIN |
const int | Min-heap configuration constant |
adt.HEAP_TYPE_MAX |
const int | Max-heap configuration constant |
adt.arg1 |
int | Scratch variable for internal argument passing |
adt.arg2 |
int | Scratch variable for internal argument passing |
adt.arg3 |
int | Scratch variable for internal argument passing |
adt.arg4 |
int | Scratch variable for internal argument passing |
adt.list_i |
int | Loop counter for sorting operations |
adt.list_j |
int | Loop counter for sorting operations |
adt.list_k |
int | Swap temporary for sorting operations |
adt.list_l |
int | Scratch variable for list operations |
Notes: All ADT operations across the module reference these constants and utility variables.
Example¶
// TODO: Add usage example