NAME
ttypt/islet.h - Public API for libislet โ spatial indexing with Morton codes.
SYNOPSIS
#include <stdint.h>
#include <stdbool.h>
#include <ttypt/corm.h>
#include 'morton.h'
Data Structures
Per-dimension operation table.
Macros
Functions
Initialize the islet subsystem.
Open or create a spatial database.
Create an iterator for all points within a rectangular bounding box.
2D x 32-bit box iterator. Same contract as islet_iter_N(), on int32_t lanes (start AND lengths). Use with islet_next32().
Advance iterator and retrieve the next point/value pair.
Advance a 2D x 32-bit iterator (islet_iter_2_32 handle).
Delete the first value stored at a spatial coordinate.
2D delete. See islet_del_1() for the family docs.
3D delete. See islet_del_1() for the family docs.
4D delete. See islet_del_1() for the family docs.
2D x 32-bit delete. See islet_del_1() for the family docs.
Delete every value stored at a spatial coordinate.
2D delete-all. See islet_del_all_1() for the family docs.
3D delete-all. See islet_del_all_1() for the family docs.
4D delete-all. See islet_del_all_1() for the family docs.
2D x 32-bit delete-all. See islet_del_all_1() for the family docs.
2D x 32-bit delete-by-value. See islet_del_value_1() for the family docs.
Retrieve the value stored at a spatial coordinate.
2D retrieve. See islet_get_1() for the family docs.
3D retrieve. See islet_get_1() for the family docs.
4D retrieve. See islet_get_1() for the family docs.
2D x 32-bit retrieve. See islet_get_1() for the family docs.
Count the values stored at a spatial coordinate.
2D cell count. See islet_cell_count_1() for the family docs.
3D cell count. See islet_cell_count_1() for the family docs.
4D cell count. See islet_cell_count_1() for the family docs.
2D x 32-bit cell count. See islet_cell_count_1() for the family docs.
Diagnostic: index entries examined by the last box walk.
Create an iterator for all values stored at one coordinate.
2D x 32-bit cell iterator. Same contract as islet_get_multi_N() (use the shared islet_cell_next() to read values).
Advance a cell iterator and retrieve the next value.
Delete one value from a spatial coordinate (phase-2A adapter primitive).
Store a value at a spatial coordinate (append).
2D append. See islet_put_1() for the family docs.
3D append. See islet_put_1() for the family docs.
4D append. See islet_put_1() for the family docs.
2D x 32-bit append. See islet_put_1() for the family docs.
Store a value at a spatial coordinate (replace).
2D replace. See islet_set_1() for the family docs.
3D replace. See islet_set_1() for the family docs.
4D replace. See islet_set_1() for the family docs.
2D x 32-bit replace. See islet_set_1() for the family docs.
Fill a recall candidate set with the values in a bounding box.
2D x 32-bit box fill. Same contract as rec_axis_fill_bbox_N(), on int32_t lanes (start AND lengths). ISLET_FILL_MAX_VOL caps every config alike.
Batch-encode multiple 3D points to Morton codes using SIMD.
Batch-encode multiple 4D points to Morton codes using SIMD.
Batch-decode multiple 3D Morton codes to points using SIMD.
Batch-decode multiple 4D Morton codes to points using SIMD.
Test if an axis-aligned 2D bounding box contains any discrete data.
Variables
The per-dimension operation table (islet_ops[0] = all NULL).
Detailed Description
Public API for libislet โ spatial indexing with Morton codes.
Islet provides efficient spatial database operations using Morton codes (Z-order space-filling curves) for multi-dimensional coordinate indexing. Built on top of libcorm for persistence and hash table operations.
Coordinates are signed 16-bit integers (int16_t) ranging from -32768 to 32767, suitable for game worlds, voxel engines, and spatial simulations.
Note
Depends on libcorm >= 0.8.0 (per-key multi-value chains, corm_get_multi, rec.h) and libstele.
Author
Generated automatically by Doxygen for islet from the source code.