Module #02.02.04 : Deletion of structure elements

All PVT documentation can be found under PHIGS Validation Tests - Overview. You may also return to the hierarchical table of topics covered by the PVT. For an explanation of the format of the individual module documentation, please see section 2.5 of the User's Guide.


DESCRIPTION: This module tests the ability of the programmer to
delete elements within an open and closed structure.

SEMANTIC REQUIREMENTS:


SR1. <Delete element> deletes the element pointed to by the `element pointer.'
#F 122
#D 7.3 4.3
#S 4.4.4/29/3
#T P01/3 P01/5 P01/7 P05/1

SR2. If <delete element> is used, and if the element position is zero nothing is deleted.
#F 122
#D 7.3 4.3
#S 4.4.4/29/3
#T P01/1

SR3. <Delete element range> deletes all structure elements between and including the lower element position and the higher element position.
#F 123
#D 7.3
#S 4.4.4/29/3
#T P02/1 P02/2 P02/4 P02/6 P02/8 P02/10 P05/3

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 123
#D 7.3
#S 4.4.4/29/3
#T P02/6 P02/8 P02/10

SR5. <Delete elements between labels> deletes elements between but not including the occurrences of two specified labels.
#F 124
#D 7.3 7.3.5
#S 4.4.4/29/3
#T P03/1 P03/3 P03/5 P03/7 P05/5

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 124
#D 7.3.5 4.3
#S 4.4.4/29/3
#T P03/1 P03/3 P03/5 P03/7 P05/5

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 122 123 124
#D 7.3 4.3
#S 4.4.4/29/3
#T P01/2 P01/4 P01/6 P01/8 P02/3 P02/5 P02/7 P02/9 P02/11 P03/2 P03/4
#T P03/6 P03/8 P05/2 P05/4 P05/6

SR8. <Empty structure> deletes all elements of a specified open or closed structure.
#F 125
#D 7.1 7.3
#S 4.4.4/29/4
#T P04/1 P04/3 P05/7

SR9. After using <empty structure> on a specified structure, the specified structure will exist.
#F 125
#D 7.1
#S 4.4.4/29/4
#T P04/1 P04/3 P05/7

SR10. After using <empty structure> on a specified structure, references to the now empty structure remain intact.
#F 125
#D 7.1 7.3.4
#S 4.4.4/29/4
#T P04/2 P04/4

SR11. If <empty structure> is used on a specified open structure, the `element pointer' is set to 0.
#F 125
#D 7.1 7.3 4.3
#S 4.4.4/29/4
#T P04/5
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




PROGRAM 1: Delete element

You may inspect either the design or code for this program.


PROGRAM 2: Delete element range

You may inspect either the design or code for this program.


PROGRAM 3: Delete elements between labels

You may inspect either the design or code for this program.


PROGRAM 4: Empty structure

You may inspect either the design or code for this program.


PROGRAM 5: Deleting structure elements in REPLACE edit mode

You may inspect either the design or code for this program.

End of documentation for 02.02.04