.TH "ttypt/islet.h" 3 "islet" \" -*- nroff -*- .ad l .nh .SH NAME ttypt/islet.h \- Public API for libislet — spatial indexing with Morton codes\&. .SH SYNOPSIS .br .PP \fR#include \fP .br \fR#include \fP .br \fR#include \fP .br \fR#include 'morton\&.h'\fP .br .SS "Data Structures" .in +1c .ti -1c .RI "struct \fBislet_ops_t\fP" .br .RI "Per-dimension operation table\&. " .in -1c .SS "Macros" .in +1c .ti -1c .RI "#define \fBISLET_MISS\fP UINT32_MAX" .br .ti -1c .RI "#define \fBISLET_FILL_MAX_VOL\fP 1048576u" .br .ti -1c .RI "#define \fBISLET_AXIS_MAX_POINTS\fP 1024u" .br .in -1c .SS "Functions" .in +1c .ti -1c .RI "void \fBislet_init\fP (void)" .br .RI "Initialize the islet subsystem\&. " .ti -1c .RI "uint32_t \fBislet_open\fP (char *filename, char *database, uint32_t mask)" .br .RI "Open or create a spatial database\&. " .ti -1c .RI "uint32_t \fBislet_iter_1\fP (uint32_t pdb_hd, int16_t *s, uint16_t *l)" .br .RI "Create an iterator for all points within a rectangular bounding box\&. " .ti -1c .RI "uint32_t \fBislet_iter_2_32\fP (uint32_t pdb_hd, int32_t *s, int32_t *l)" .br .RI "2D x 32-bit box iterator\&. Same contract as islet_iter_N(), on int32_t lanes (start AND lengths)\&. Use with \fBislet_next32()\fP\&. " .ti -1c .RI "int \fBislet_next\fP (int16_t *p, uint32_t *ref, uint32_t cur)" .br .RI "Advance iterator and retrieve the next point/value pair\&. " .ti -1c .RI "int \fBislet_next32\fP (int32_t *p, uint32_t *ref, uint32_t cur)" .br .RI "Advance a 2D x 32-bit iterator (islet_iter_2_32 handle)\&. " .ti -1c .RI "static void \fBislet_del_1\fP (uint32_t pdb_hd, int16_t *p)" .br .RI "Delete the first value stored at a spatial coordinate\&. " .ti -1c .RI "static void \fBislet_del_2\fP (uint32_t pdb_hd, int16_t *p)" .br .RI "2D delete\&. See \fBislet_del_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBislet_del_3\fP (uint32_t pdb_hd, int16_t *p)" .br .RI "3D delete\&. See \fBislet_del_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBislet_del_4\fP (uint32_t pdb_hd, int16_t *p)" .br .RI "4D delete\&. See \fBislet_del_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBislet_del_2_32\fP (uint32_t pdb_hd, int32_t *p)" .br .RI "2D x 32-bit delete\&. See \fBislet_del_1()\fP for the family docs\&. " .ti -1c .RI "static uint32_t \fBislet_del_all_1\fP (uint32_t pdb_hd, int16_t *p)" .br .RI "Delete every value stored at a spatial coordinate\&. " .ti -1c .RI "static uint32_t \fBislet_del_all_2\fP (uint32_t pdb_hd, int16_t *p)" .br .RI "2D delete-all\&. See \fBislet_del_all_1()\fP for the family docs\&. " .ti -1c .RI "static uint32_t \fBislet_del_all_3\fP (uint32_t pdb_hd, int16_t *p)" .br .RI "3D delete-all\&. See \fBislet_del_all_1()\fP for the family docs\&. " .ti -1c .RI "static uint32_t \fBislet_del_all_4\fP (uint32_t pdb_hd, int16_t *p)" .br .RI "4D delete-all\&. See \fBislet_del_all_1()\fP for the family docs\&. " .ti -1c .RI "static uint32_t \fBislet_del_all_2_32\fP (uint32_t pdb_hd, int32_t *p)" .br .RI "2D x 32-bit delete-all\&. See \fBislet_del_all_1()\fP for the family docs\&. " .ti -1c .RI "uint32_t \fBislet_del_value_2_32\fP (uint32_t pdb_hd, int32_t *p, uint32_t thing)" .br .RI "2D x 32-bit delete-by-value\&. See \fBislet_del_value_1()\fP for the family docs\&. " .ti -1c .RI "static uint32_t \fBislet_get_1\fP (uint32_t pdb_hd, int16_t *p)" .br .RI "Retrieve the value stored at a spatial coordinate\&. " .ti -1c .RI "static uint32_t \fBislet_get_2\fP (uint32_t pdb_hd, int16_t *p)" .br .RI "2D retrieve\&. See \fBislet_get_1()\fP for the family docs\&. " .ti -1c .RI "static uint32_t \fBislet_get_3\fP (uint32_t pdb_hd, int16_t *p)" .br .RI "3D retrieve\&. See \fBislet_get_1()\fP for the family docs\&. " .ti -1c .RI "static uint32_t \fBislet_get_4\fP (uint32_t pdb_hd, int16_t *p)" .br .RI "4D retrieve\&. See \fBislet_get_1()\fP for the family docs\&. " .ti -1c .RI "static uint32_t \fBislet_get_2_32\fP (uint32_t pdb_hd, int32_t *p)" .br .RI "2D x 32-bit retrieve\&. See \fBislet_get_1()\fP for the family docs\&. " .ti -1c .RI "static uint32_t \fBislet_cell_count_1\fP (uint32_t pdb_hd, int16_t *p)" .br .RI "Count the values stored at a spatial coordinate\&. " .ti -1c .RI "static uint32_t \fBislet_cell_count_2\fP (uint32_t pdb_hd, int16_t *p)" .br .RI "2D cell count\&. See \fBislet_cell_count_1()\fP for the family docs\&. " .ti -1c .RI "static uint32_t \fBislet_cell_count_3\fP (uint32_t pdb_hd, int16_t *p)" .br .RI "3D cell count\&. See \fBislet_cell_count_1()\fP for the family docs\&. " .ti -1c .RI "static uint32_t \fBislet_cell_count_4\fP (uint32_t pdb_hd, int16_t *p)" .br .RI "4D cell count\&. See \fBislet_cell_count_1()\fP for the family docs\&. " .ti -1c .RI "static uint32_t \fBislet_cell_count_2_32\fP (uint32_t pdb_hd, int32_t *p)" .br .RI "2D x 32-bit cell count\&. See \fBislet_cell_count_1()\fP for the family docs\&. " .ti -1c .RI "uint32_t \fBislet_last_scan_count\fP (void)" .br .RI "Diagnostic: index entries examined by the last box walk\&. " .ti -1c .RI "uint32_t \fBislet_get_multi_1\fP (uint32_t pdb_hd, int16_t *p)" .br .RI "Create an iterator for all values stored at one coordinate\&. " .ti -1c .RI "uint32_t \fBislet_get_multi_2_32\fP (uint32_t pdb_hd, int32_t *p)" .br .RI "2D x 32-bit cell iterator\&. Same contract as islet_get_multi_N() (use the shared \fBislet_cell_next()\fP to read values)\&. " .ti -1c .RI "int \fBislet_cell_next\fP (uint32_t *ref, uint32_t cur)" .br .RI "Advance a cell iterator and retrieve the next value\&. " .ti -1c .RI "uint32_t \fBislet_del_value_1\fP (uint32_t pdb_hd, int16_t *p, uint32_t thing)" .br .RI "Delete one value from a spatial coordinate (phase-2A adapter primitive)\&. " .ti -1c .RI "static void \fBislet_put_1\fP (uint32_t pdb_hd, int16_t *p, uint32_t thing)" .br .RI "Store a value at a spatial coordinate (append)\&. " .ti -1c .RI "static void \fBislet_put_2\fP (uint32_t pdb_hd, int16_t *p, uint32_t thing)" .br .RI "2D append\&. See \fBislet_put_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBislet_put_3\fP (uint32_t pdb_hd, int16_t *p, uint32_t thing)" .br .RI "3D append\&. See \fBislet_put_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBislet_put_4\fP (uint32_t pdb_hd, int16_t *p, uint32_t thing)" .br .RI "4D append\&. See \fBislet_put_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBislet_put_2_32\fP (uint32_t pdb_hd, int32_t *p, uint32_t thing)" .br .RI "2D x 32-bit append\&. See \fBislet_put_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBislet_set_1\fP (uint32_t pdb_hd, int16_t *p, uint32_t thing)" .br .RI "Store a value at a spatial coordinate (replace)\&. " .ti -1c .RI "static void \fBislet_set_2\fP (uint32_t pdb_hd, int16_t *p, uint32_t thing)" .br .RI "2D replace\&. See \fBislet_set_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBislet_set_3\fP (uint32_t pdb_hd, int16_t *p, uint32_t thing)" .br .RI "3D replace\&. See \fBislet_set_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBislet_set_4\fP (uint32_t pdb_hd, int16_t *p, uint32_t thing)" .br .RI "4D replace\&. See \fBislet_set_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBislet_set_2_32\fP (uint32_t pdb_hd, int32_t *p, uint32_t thing)" .br .RI "2D x 32-bit replace\&. See \fBislet_set_1()\fP for the family docs\&. " .ti -1c .RI "int \fBrec_axis_fill_bbox_1\fP (uint32_t pdb_hd, int16_t *s, uint16_t *l, rec_set_t *out)" .br .RI "Fill a recall candidate set with the values in a bounding box\&. " .ti -1c .RI "int \fBrec_axis_fill_bbox_2_32\fP (uint32_t pdb_hd, int32_t *s, int32_t *l, rec_set_t *out)" .br .RI "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\&. " .ti -1c .RI "uint32_t \fBmorton_set_bulk\fP (uint64_t *out, int16_t points[][3], uint32_t n)" .br .RI "Batch-encode multiple 3D points to Morton codes using SIMD\&. " .ti -1c .RI "uint32_t \fBmorton_set_bulk4\fP (uint64_t *out, int16_t points[][4], uint32_t n)" .br .RI "Batch-encode multiple 4D points to Morton codes using SIMD\&. " .ti -1c .RI "uint32_t \fBmorton_get_bulk\fP (int16_t points[][3], const uint64_t *codes, uint32_t n)" .br .RI "Batch-decode multiple 3D Morton codes to points using SIMD\&. " .ti -1c .RI "uint32_t \fBmorton_get_bulk4\fP (int16_t points[][4], const uint64_t *codes, uint32_t n)" .br .RI "Batch-decode multiple 4D Morton codes to points using SIMD\&. " .ti -1c .RI "bool \fBislet_box_is_empty\fP (uint32_t pdb_hd, int16_t x, int16_t y, uint16_t size)" .br .RI "Test if an axis-aligned 2D bounding box contains any discrete data\&. " .in -1c .SS "Variables" .in +1c .ti -1c .RI "const \fBislet_ops_t\fP \fBislet_ops\fP [5]" .br .RI "The per-dimension operation table (islet_ops[0] = all NULL)\&. " .in -1c .SH "Detailed Description" .PP 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\&. .PP Coordinates are signed 16-bit integers (int16_t) ranging from -32768 to 32767, suitable for game worlds, voxel engines, and spatial simulations\&. .PP \fBNote\fP .RS 4 Depends on libcorm >= 0\&.8\&.0 (per-key multi-value chains, corm_get_multi, rec\&.h) and libstele\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for islet from the source code\&.