TMAP OPERATIONS and STRUCTURES
do_all_taxes will access the tax rate from the database (db0) and for
each person in the employees database calculate and update their tax entry.
This process will be repeated for the friends database. The final result
will be returned to the central database as DB.
forall. forall checks
set0, a set, to see if it is REJECT, an empty OMap PLACE or an EMPTY set.
If not, the first element is located; then, all the elements of set are
processed by DoFunction.
all elements of set set0 have been processed, the completed set is
returned as the output of ForALL.
issetok_1 checks c0, a set, to see if it is REJECT, a PLACE or EMPTY.
If any of these conditions exist for c0; then it is simply returned as c1.
If not, the following function is called:
1.2 compute_tax. compute_tax will compute
the tax of fred, a PERSON, with a given rate, a rate. The resulting tax is
used to update fred who will now be fred_with_tax.
1.1 forall.c 1.1.1 isSetOK_1.c 1.2