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


11.4.12 Data Type Generic Record Functions

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

See The Object Type.

r_add

void r_add(record r, text s, object o);

inserts data of the type and value described by the o object in the s position in the r record if r does not map s, does nothing otherwise

r_bind

void r_bind(record r, text s, object o);

replaces data in the s position in the r record 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.

r_case

void r_case(record r, text s, object o);

inserts or replaces data in the s position in the r record 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.

r_dock

void r_dock(record r, text s, object o);

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

See Referable Objects.

r_extract

void r_extract(&, record r, text s);

extracts the data in the s position in the r record in the first argument

r_fit

void r_fit(record, ...);

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 r record

r_fix

void r_fix(record r, text s, object o);

inserts or replaces data in the s position in the r record with data of the type and value described by the o object

r_get

void r_get(&, record r, text s);

sets the first argument as the data in the s position in the r record (data is linked if allowed, copied otherwise)

r_jack

integer r_jack(&, record r, text s);

is 0 if the r record does not map s or if the data in the s 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).

r_link

void r_link(record r, text s, object o);

inserts a reference to or a copy of the data described by the o object in the s position in the r record (references are made when the data type described by o allows)

See Referable Objects.

r_pick

object r_pick(record r, text s);

is the data in the s position in the r record, the data is removed from the record

r_put

void r_put(record r, text s, object o);

inserts data of the type and value described by the o object in the s position in the r record

r_query

object r_query(record r, text s);

is the data in the s position in the r record

r_replace

void r_replace(record r, text s, object o);

replaces data in the s position in the r record with data of the type and value described by the o object

r_tie

void r_tie(record, ...);

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 r record

See Referable Objects.


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