Next: , Previous: , Up: Top   [Index]


7 Byte Array Data Functions

db_delete

void db_delete(table t, data k);

deletes the k key from table t.

db_first

integer db_first(data d, table t, data k);

is zero if table t maps no key, non zero otherwise. In the latter case k is set to the first mapped key and d to its associated data.

db_fix

data db_fix(table t, data k, data d);

is d, associates the content of d to key k in table t.

db_get

void db_get(data d, table t, data k);

sets d to the associated data of key k in table t.

db_glcx

void db_glcx(table t, data g, data l);

deletes the keys in table t greater than g and less than l.

db_gocx

void db_gocx(table t, data g, data o);

deletes the keys in table t greater than g and less than or matching o.

db_i_greater

integer db_i_greater(data d, table t, data k);

is zero if table t maps no greater key than k, non zero otherwise. In the latter case k is set to the first mapped greater key and d to its associated data.

db_i_less

integer db_i_less(data d, table t, data k);

is zero if table t maps no lesser key than k, non zero otherwise. In the latter case k is set to the last mapped lesser key and d to its associated data.

db_i_lower

integer db_i_lower(data d, table t, data k);

is zero if table t maps no matching or lesser key than k, non zero otherwise. In the latter case k is set to the last mapped not greater key and d to its associated data.

db_i_upper

integer db_i_upper(data d, table t, data k);

is zero if table t maps no matching or greater key than k, non zero otherwise. In the latter case k is set to the first mapped not less key and d to its associated data.

db_ik_greater

integer db_ik_greater(table t, data k);

is zero if table t maps no greater key than k, non zero otherwise. In the latter case k is set to the first mapped greater key.

db_ik_less

integer db_ik_less(table t, data k);

is zero if table t maps no lesser key than k, non zero otherwise. In the latter case k is set to the last mapped lesser key.

db_ik_lower

integer db_ik_lower(table t, data k);

is zero if table t maps no matching or lesser key than k, non zero otherwise. In the latter case k is set to the last mapped not greater key.

db_ik_upper

integer db_ik_upper(table t, data k);

is zero if table t maps no matching or greater key than k, non zero otherwise. In the latter case k is set to the first mapped not less key.

db_jack

integer db_jack(data d, table t, data k);

is non zero if table t has a key k, zero if it doesn’t. Sets d to the k associated data for a non zero evaluation.

db_k_first

integer db_k_first(table t, data k);

is zero if table t maps no key, non zero otherwise. In the latter case k is set to the first mapped key.

db_k_last

integer db_k_last(table t, data k);

is zero if table t maps no key, non zero otherwise. In the latter case k is set to the last mapped key.

db_key

integer db_key(table t, data k);

is non zero if table t has a key k, zero if it doesn’t.

db_last

integer db_last(data d, table t, data k);

is zero if table t maps no key, non zero otherwise. In the latter case k is set to the last mapped key and d to its associated data.

db_over

integer db_over(data d, table t, data k);

is non zero if table t has a key k, zero if it doesn’t. Sets d to the k associated data for a non zero evaluation and removes the key from t.

db_pick

data db_pick(table t, data k);

is the k key associated data in table t, k is removed from t.

db_put

data db_put(table t, data k, data d);

is d, puts a new key k in table t with the content of d for associated data.

db_query

data db_query(table t, data k);

is the k key associated data in table t.

db_resign

void db_resign(table t, data k);

deletes the k key from table t when the key is present.

db_ulcx

void db_ulcx(table t, data u, data l);

deletes the keys in table t greater than or matching u and less than l.

db_uocx

void db_uocx(table t, data u, data o);

deletes the keys in table t greater than or matching u and less than or matching o.

db_yank

void db_yank(data d, table t, data k);

sets d to the associated data of key k in table t and removes k from t.


Next: , Previous: , Up: Top   [Index]