DESCRIPTION: This module tests the ability of the programmer to delete elements within an open and closed structure. SEMANTIC REQUIREMENTS:#F 122
SR1. <Delete element> deletes the element pointed to by the `element pointer.'
#F 122
SR2. If <delete element> is used, and if the element position is zero nothing is deleted.
#F 123
SR3. <Delete element range> deletes all structure elements between and including the lower element position and the higher element position.
#F 123
SR4. If <delete element range> is used, and if an element position is less than 1, a value of 0 is used; if an element position is greater than the number of elements in the open structure, a value pointing to the last element in the structure is used.
#F 124
SR5. <Delete elements between labels> deletes elements between but not including the occurrences of two specified labels.
#F 124
SR6. For <delete elements between labels>, the labels specified by label-identifier 1 and 2 are those found by successive forward searches, starting from the position following the element pointer.
#F 122 123 124
SR7. Following all three delete functions, the `element pointer' is positioned at the element immediately preceding the element, or group of elements, which was deleted. If no element is deleted, the `element pointer' is unchanged.
#F 125
SR8. <Empty structure> deletes all elements of a specified open or closed structure.
#F 125
SR9. After using <empty structure> on a specified structure, the specified structure will exist.
#F 125
SR10. After using <empty structure> on a specified structure, references to the now empty structure remain intact.
#F 125
SR11. If <empty structure> is used on a specified open structure, the `element pointer' is set to 0.
LOCAL DICTIONARY:
Functions --- 122: pdel <delete element> 123: pdelra <delete element range> 124: pdellb <delete elements between labels> 125: pemst <empty structure> Data Structures --- 4 ... phigs_state_list 4.3 ... element_pointer 7 ... structure_state_list 7.1 ... structure_identifier 7.3 ... list_of_structure_elements 7.3.4 ... execute_structure 7.3.5 ... label SEMANTIC CROSS-REFERENCES: 02.01.01/SR02
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.