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


13.5.3 Non Data Type Specific Record Functions

r_cast

record r_cast(record r, record z);

is r, empties the r record and links or copies the content of the t record in r (data references are made where the types allow, copies where not)

r_clear

record r_clear(record r);

is r, empties the r record

r_copy

record r_copy(record r, record z);

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

r_delete

record r_delete(record r, text s);

is r, 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

record r_drop(record r, text s);

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

r_erase

record r_erase(record l, text s, text t);

is r, deletes the s to t indexed elements of the r record. If t indicates an element prior to s no element is removed from r.

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 position, 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_net

text r_net(record r, text s);

is s if the r record does not map s or if the data in the s position is not of the intrinsic string type, the data in the s position otherwise

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

recird r_resign(record r, text s);

is r, 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_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

record r_swap(record r, record z);

is r, exchanges the content of the r and z records.

The function visits every item in the two collections.

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: Non Data Type Specific Byte Data Record Functions, Previous: Record Search Interface, Up: The Record Library   [Index]