DESCRIPTION: This module tests the ability of the programmer to set the `edit mode' of structures and control the element pointer position. SEMANTIC REQUIREMENTS:#F 117
SR1. <Set edit mode> sets the `edit mode.'
#F 117
SR2. When `edit mode' is INSERT, new elements are inserted after the element pointed to by the `element pointer.'
#F 117
SR3. When `edit mode' is REPLACE, new elements replace the element pointed to by the `element pointer.'
#F 117
SR4. Whether the `edit mode' is REPLACE or INSERT, the `element pointer' is always updated to point to the new element.
#F 1 117
SR5. After <open PHIGS>, the default for `edit mode' is INSERT.
#F 117
SR6. If the `element pointer' is 0, then, regardless of the `edit mode', the new element is inserted immediately before element 1; the `element pointer' becomes 1 and points at the new element.
#F 119
SR7. <Set element pointer> sets the `element pointer' to an absolute position.
#F 120
SR8. <Offset element pointer> offsets the `element pointer' to a position whose value is the sum of the `element pointer' and the offset.
#F 121
SR9. <Set element pointer at label> positions the `element pointer' at the next occurrence beyond the current position of a specified label element.
#F 119 120
SR10. If <set element pointer> or <offset element pointer> is used to position the `element pointer' beyond the structure's bounds (either zero, or the last element position), the `element pointer' then points at the bound it would have exceeded.
#F 208
SR11. <Inquire edit mode> returns the current `edit mode.'
LOCAL DICTIONARY:
Functions --- 001: popph <open phigs> 117: psedm <set edit mode> 119: psep <set element pointer> 120: posep <offset element pointer> 121: pseplb <set element pointer at label> 208: pqedm <inquire edit mode> Data Structures --- 4 ... phigs_state_list 4.3 ... element_pointer 4.4 ... edit_mode 7 ... structure_state_list 7.3 ... list_of_structure_elements 7.3.5 ... label SEMANTIC CROSS-REFERENCES: 02.01.02.01/SR06 02.01.02.01/SR07 02.01.02.02/SR11 02.01.02.02/SR12
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.