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


13.5.13 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,);

inserts data of the type and value described by the last argument 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,);

replaces data in the s position in the r record with a reference to or a copy of the data described by the last argument (references are made where data types allow)

See Referable Objects.

r_case

object r_case(record r, text s,);

is the data in the s position in the r record, as inserted or replaced by the function with a reference to or a copy of the data described by the last argument (references are made where the data types allow)

See Referable Objects.

r_dock

void r_dock(record r, text s,);

inserts a reference to or a copy of the data described by the last argument in the s position in the r record if r does not map s, does nothing otherwise (references are made where data types allow)

See Referable Objects.

r_fit

record r_fit(record r, ...);

is r, 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. It faults if one of the insert positions is taken, with data already inserted remaining.

r_fix

void r_fix(record r, text s,);

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

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,);

inserts a reference to or a copy of the data described by the last argument in the s position in the r record (references are made where data types allow)

See Referable Objects.

r_over

integer r_over(&, 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 and removes s from r.

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,);

inserts data of the type and value described by the last argument 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,);

replaces data in the s position in the r record with data of the type and value described by the last argument

r_tie

record r_tie(record, ...);

is r, 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. it faults if one of the insert positions is taken, with data already inserted remaining.

See Referable Objects.

r_yank

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

sets the first argument as the data in the s position in the r record and removes s from r


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