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


11.4.3 Non Data Type Specific Record Functions

r_class

void r_class(record r);

deletes the first element in the r record

r_clear

void r_clear(record r);

empties the r record

r_copy

void r_copy(record r, record z);

empties the r record and copies the content of the z record in r

r_delete

void r_delete(record r, text s);

deletes the s indexed element of the r record

r_down

void r_down(record r, text s);

decrements the s indexed element in the r record (the element type is intrinsic numerical)

r_drop

void r_drop(record r, text s);

deletes all the elements of the r record corresponding indeces prefixed by s

r_id

integer r_id(record r, text s);

is the type ID of the s indexed element in the r record

r_key

integer r_key(record r, text s);

is non zero if the r record defines a s index, 0 otherwise

r_move

void r_move(record r, text s, text t);

moves the s indexed element of the r record in the t position

r_new

void r_new(record &r);

sets the r record as a new record (same as ‘r_clear’ if r is not linked multiple times, otherwise creates a new record and sets r as a reference to the new record)

r_resign

void r_resign(record r, text s);

deletes the s indexed element of the r record if r maps s, does nothing otherwise

r_set

record r_set(record &r, record z);

is z, sets the r record as a reference of the z record

r_short

void r_short(record r);

deletes the last element in the r record

r_size

integer r_size(record r);

is the size (i.e. number of items) of the r record

r_spin

void r_spin(record r, text s, text t);

exchanges the s and t indexed elements in the r record

r_swap

void r_swap(record r, record z);

exchanges the content of the r and z records

r_type

text r_type(record r, text s);

is the type name of the s indexed element in the r record

r_up

void r_up(record r, text s);

increments the s indexed element in the r record (the element type is intrinsic numerical)


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