.TH "ttypt/pointcfg.h" 3 "islet" \" -*- nroff -*- .ad l .nh .SH NAME ttypt/pointcfg.h \- Configuration objects: one "static-method class" per point config\&. .SH SYNOPSIS .br .PP \fR#include \fP .br \fR#include \fP .br .SS "Data Structures" .in +1c .ti -1c .RI "struct \fBislet_point2b\fP" .br .RI "2-byte-lane (int16) point config object type\&. " .ti -1c .RI "struct \fBislet_point4b\fP" .br .RI "4-byte-lane (int32) point config object type\&. " .in -1c .SS "Typedefs" .in +1c .ti -1c .RI "typedef struct \fBislet_point2b\fP \fBislet_point2b_t\fP" .br .RI "2-byte-lane (int16) point config object type\&. " .ti -1c .RI "typedef struct \fBislet_point4b\fP \fBislet_point4b_t\fP" .br .RI "4-byte-lane (int32) point config object type\&. " .in -1c .SS "Variables" .in +1c .ti -1c .RI "const \fBislet_point2b_t\fP \fBPoint1_2\fP" .br .RI "1D int16 config object (2-byte lanes)\&. " .ti -1c .RI "const \fBislet_point2b_t\fP \fBPoint2_2\fP" .br .RI "2D int16 config object (2-byte lanes)\&. " .ti -1c .RI "const \fBislet_point2b_t\fP \fBPoint3_2\fP" .br .RI "3D int16 config object (2-byte lanes)\&. " .ti -1c .RI "const \fBislet_point2b_t\fP \fBPoint4_2\fP" .br .RI "4D int16 config object (2-byte lanes)\&. " .ti -1c .RI "const \fBislet_point4b_t\fP \fBPoint2_4\fP" .br .RI "2D int32 config object (4-byte lanes, dense full-key codec)\&. " .in -1c .SH "Detailed Description" .PP 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: .PP .PP .nf #include 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) .fi .PP .PP 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\&. .PP Objects: Point1_2 Point2_2 Point3_2 Point4_2 int16 lanes (2 bytes), 1\&.\&.4 dims Point2_4 int32 lanes (4 bytes), 2 dims .PP \fBNote\fP .RS 4 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\&. .PP 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\&. .RE .PP \fBSee also\fP .RS 4 \fBIslet core API\fP .RE .PP .SH "Author" .PP Generated automatically by Doxygen for islet from the source code\&.