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


13.4.8 Data Type Specific Index Search Functions

is_g_<type-name>

integer is_g_<type-name>(<type> &d, 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 d to its associated data.

is_l_<type-name>

integer is_l_<type-name>(<type> &d, 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 d to its associated data.

is_o_<type-name>

integer is_o_<type-name>(<type> &d, 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.

is_u_<type-name>

integer is_u_<type-name>(<type> &d, 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.