NAME
ttypt/pointcfg.h - Configuration objects: one "static-method class" per point config.
SYNOPSIS
#include <stdint.h>
#include <ttypt/islet.h>
Data Structures
2-byte-lane (int16) point config object type.
4-byte-lane (int32) point config object type.
Typedefs
2-byte-lane (int16) point config object type.
4-byte-lane (int32) point config object type.
Variables
1D int16 config object (2-byte lanes).
2D int16 config object (2-byte lanes).
3D int16 config object (2-byte lanes).
4D int16 config object (2-byte lanes).
2D int32 config object (4-byte lanes, dense full-key codec).
Detailed Description
Configuration objects: one "static-method class" per point config.
Each spatial config โ width (bytes per lane) x dimension count โ is one exported const object (a struct of function pointers, "a class withall-static methods"). Pick the object matching your coordinates and call its members:
#include <ttypt/pointcfg.h>
islet_init();
uint32_t db = islet_open(NULL, NULL, 0xFF);
int16_t p[3] = { 10, 20, 30 };
Point3_2.put(db, p, 42); // store 42 at the cell
uint32_t v = Point3_2.get(db, p); // read it back
int16_t s[3] = { 0, 0, 0 };
uint16_t l[3] = { 4, 4, 4 };
uint32_t cur = Point3_2.iter(db, s, l);
while (Point3_2.next(p, &v, cur)) // advance the box iterator
; // ... use (p, v)
A language server offers autocomplete for every member of a config off a single symbol, so the whole operations set for that config is discoverable without leaving the type.
Objects: Point1_2 Point2_2 Point3_2 Point4_2 int16 lanes (2 bytes), 1..4 dims Point2_4 int32 lanes (4 bytes), 2 dims
Note
The flat per-dimension functions (morton_set_N, islet_put_N, point_add_N, the islet_*_2_32 family, islet_ops[]) remain for ABI compatibility, tight codec/vector loops, and genuinely runtime dims; the config objects are the recommended ergonomic surface and point at the same implementations.
One config per database: all configs share the uint64 key space with different layouts, and the file carries no config tag โ never reopen a database with another config's functions.
See also
Islet core API
Author
Generated automatically by Doxygen for islet from the source code.