Next: Index Search Functions, Previous: Index Search Interface, Up: The Index Library [Index]
index i_cast(index i, index j);
is i, empties the i index and links or copies the content of the j index in i (data references are made where the types allow, copies where not)
index i_clear(index i);
is i, empties the i index
index i_copy(index i, index j);
is i, empties the i index and copies the content of the j index in i
index i_delete(index i, integer k);
is i, deletes the k indexed element of the i index
void i_down(index i, integer k);
decrements the k indexed element in the i index (the element type is intrinsic numerical)
index i_erase(index i, integer p, integer q);
is i, deletes the p to q indexed elements of the i index. If q is less than p, the p to end and start to q ranges are deleted.
integer i_id(index i, integer k);
is the type ID of the k indexed element in the i index
integer i_key(index i, integer k);
is non zero if the i index defines a k position, 0 otherwise
void i_move(index i, integer k, integer l);
moves the k indexed element of the i index in the l position
void i_new(index &i);
sets the i index as a new index (same as ‘i_clear’ if i is not linked multiple times, otherwise creates a new index and sets i as a reference to the new index)
index i_resign(index i, integer k);
is i, deletes the k indexed element of the i index if i maps k, does nothing otherwise
index i_set(index &i, index j);
is j, sets the i index as a reference of the j index
integer i_size(index i);
is the size (i.e. number of items) of the i index
void i_spin(index i, integer k, integer l);
exchanges the k and l indexed elements in the i index
index i_swap(index i, index j);
is i, exchanges the content of the i and j indexes.
The function visits every item in the two collections.
text i_type(index i, integer k);
is the type name of the k indexed element in the i index
void i_up(index i, integer k);
increments the k indexed element in the i index (the element type is intrinsic numerical)
Next: Index Search Functions, Previous: Index Search Interface, Up: The Index Library [Index]