Skip to content

C mutation and replacement

Mutations validate ordering and types. Whole-table replacement validates before copying.

table_set_x

c
table_status_t table_set_x(table_mutable_t *table, size_t index, table_scalar_t value);

Replaces one X-axis point while preserving strict ordering.

table Mutable table. index X index. value Replacement with matching type. Operation status.

table_set_y

c
table_status_t table_set_y(table_mutable_t *table, size_t index, table_scalar_t value);

Replaces one Y-axis point while preserving strict ordering.

table Mutable map. index Y index. value Replacement with matching type. Operation status.

table_curve_set_cell

c
table_status_t table_curve_set_cell(table_mutable_t *table, size_t x_index, table_scalar_t value);

Replaces one curve cell.

table Mutable curve. x_index X index. value Replacement with matching type. Operation status.

table_map_set_cell

c
table_status_t table_map_set_cell(table_mutable_t *table, size_t x_index, size_t y_index, table_scalar_t value);

Replaces one map cell.

table Mutable map. x_index X index. y_index Y index. value Replacement with matching type. Operation status.

table_replace

c
table_status_t table_replace(table_mutable_t *table, const table_view_t *candidate);

Replaces all bound data after validating a matching candidate. The operation is not safe to race with lookup.

table Active writable table. candidate Complete candidate with identical kind, dimensions, and formats. Operation status.

Released under the MIT Licence.