Next: Data Type Specific Index Functions, Previous: Non Data Type Specific Index Functions, Up: The Index Library [Index]
All functions retrieving data link it if allowed, copy it otherwise.
integer i_first(index i, integer &k);
is zero if the i index is empty, non zero otherwise. In the latter case k is set to the first position (first mapped key).
integer i_high(index i);
is the last position (last mapped key)
integer i_last(index i, integer &k);
is zero if the i index is empty, non zero otherwise. In the latter case k is set to the last position (last mapped key).
integer i_low(index i);
is the first position (first mapped key)
integer is_first(&, index i, integer &k);
is zero if the i index is empty, non zero otherwise. In the latter case k is set to the first position (first mapped key) and the first argument to its associated data.
integer is_greater(&, index i, integer a, integer &k);
is zero if the i index defines no position (maps no key) after a, non zero otherwise. In the latter case k is set to the first position after a and the first argument to its associated data.
integer is_last(&, index i, integer &k);
is zero if the i index is empty, non zero otherwise. In the latter case k is set to the last position (last mapped key) and the first argument to its associated data.
integer is_less(&, index i, integer a, integer &k);
is zero if the i index defines no position (maps no key) before a, non zero otherwise. In the latter case k is set to the last position before a and the first argument to its associated data.
integer is_lower(&, index i, integer a, integer &k);
is zero if the i index defines no position (maps no key) less or equal to a, non zero otherwise. In the latter case k is set to the last not greater position and the first argument to its associated data.
integer is_upper(&, index i, integer a, integer &k);
is zero if the i index defines no position (maps no key) greater or equal to a, non zero otherwise. In the latter case k is set to the first not less position and the first argument to its associated data.
integer isd_greater(&, index i, integer a);
is zero if the i index defines no position (maps no key) after a, non zero otherwise. In the latter case the first argument is set to the data associated with the first after position.
integer isd_less(&, index i, integer a);
is zero if the i index defines no position (maps no key) before a, non zero otherwise. In the latter case the first argument is set to the data associated with the last before position.
integer isd_lower(&, index i, integer a);
is zero if the i index defines no position (maps no key) less or equal to a, non zero otherwise. In the latter case the first argument is set to the data associated with the last not greater position.
integer isd_upper(&, index i, integer a);
is zero if the i index defines no position (maps no key) greater or equal to a, non zero otherwise. In the latter case the first argument is set to the data associated with the first not less position.
integer isk_greater(index i, integer a, integer &k);
is zero if the i index defines no position (maps no key) after a, non zero otherwise. In the latter case k is set to the first position after a.
integer isk_less(index i, integer a, integer &k);
is zero if the i index defines no position (maps no key) before a, non zero otherwise. In the latter case k is set to the last position before a.
integer isk_lower(index i, integer a, integer &k);
is zero if the i index defines no position (maps no key) matching or less than a, non zero otherwise. In the latter case k is set to the last position not after a.
integer isk_upper(index i, integer a, integer &k);
is zero if the i index defines no position (maps no key) matching or greater than a, non zero otherwise. In the latter case k is set to the first position not before a.
Next: Data Type Specific Index Functions, Previous: Non Data Type Specific Index Functions, Up: The Index Library [Index]