islet_ops_t(3)islet

NAME

islet_ops_t - Per-dimension operation table.

SYNOPSIS

#include <islet.h>

Detailed Description

Per-dimension operation table.

A single global, indexed by dimension count (1..4), giving the per-dimension implementation of each core op. Each function pointer takes NO dimension argument โ€” the index into islet_ops[] is the dim. This is the runtime-dim mechanism: when dim is a variable, call islet_ops[dim].morton_set(p) instead of switching on the value yourself. The type-safe alternative is to call the per-dimension function directly (morton_set_3(), etc.), which the compiler fully unrolls.

islet_ops[0] is all-NULL (dimension 0 is invalid); islet_ops[1..4] are initialized by the library.

Example (runtime dimension):

islet_ops[dim].morton_set(p);   // dim in 1..4
islet_ops[dim].iter(db, s, l);  // box-iterate the runtime dim

See also

morton_set_1 morton_set_2 morton_set_3 morton_set_4

islet_iter_1 islet_iter_2 islet_iter_3 islet_iter_4

Author

Generated automatically by Doxygen for islet from the source code.