Next: , Previous: , Up: The Index Library   [Index]


11.5.10 Data Type Generic Index Functions

Parameters of ‘object’ type may be substituted in function calls by data of any type.

See The Object Type.

i_add

void i_add(index i, integer k, object o);

inserts data of the type and value described by the o object in the k position in the i index if i does not map k, does nothing otherwise

i_bind

void i_bind(index i, integer k, object o);

replaces data in the k position in the i index with a reference to or a copy of the data described by the o object (references are made when the data type described by o allows)

See Referable Objects.

i_case

void i_case(index i, integer k, object o);

inserts or replaces data in the k position in the i index with a reference to or a copy of the data described by the o object (references are made when the data type described by o allows)

See Referable Objects.

i_dock

void i_dock(index i, integer k, object o);

inserts a reference to or a copy of the data described by the o object in the k position in the i index if i does not map k, does nothing otherwise (references are made when the data type described by o allows)

See Referable Objects.

i_extract

void i_extract(&, index i, integer k);

extracts the data in the k position in the i index in the first argument

i_fit

void i_fit(index, ...);

inserts data of the types and values described by the every second optional argument in the positions indicated by the preceding optional arguments in the i index

i_fix

void i_fix(index i, integer k, object o);

inserts or replaces data in the k position in the i index with data of the type and value described by the o object

i_get

void i_get(&, index i, integer k);

sets the first argument as the data in the k position in the i index (data is linked if allowed, copied otherwise)

i_jack

integer i_jack(&, index i, integer k);

is 0 if the i index does not map s or if the data in the k position is not of the same type as the first argument, non zero otherwise. Sets the first argument as the data in the s position for the latter case (data is linked if allowed, copied otherwise).

i_link

void i_link(index i, integer k, object o);

inserts a reference to or a copy of the data described by the o object in the k position in the i index (references are made when the data type described by o allows)

See Referable Objects.

i_pick

object i_pick(index i, integer k);

is the data in the k position in the i index, the data is removed from the index

i_put

void i_put(index i, integer k, object o);

inserts data of the type and value described by the o object in the k position in the i index

i_query

object i_query(index i, integer k);

is the data in the k position in the i index

i_replace

void i_replace(index i, integer k, object o);

replaces data in the k position in the i index with data of the type and value described by the o object

i_tie

void i_tie(index, ...);

inserts references to or copies of data of the types and values described by the every second optional argument in the positions indicated by the preceding optional arguments in the i index

See Referable Objects.


Next: , Previous: , Up: The Index Library   [Index]