DELETE STRUCTURE(3P) — Kubota Pacfic Computer Inc. (29 February 1991)
NAME
DELETE STRUCTURE − remove specified structure
SYNOPSIS
C Syntax
void
pdel_struct ( struct_id )
Pintstruct_id;structure identifier
Required PHIGS Operating States
(PHOP, ∗, ∗, ∗)
DESCRIPTION
Purpose
DELETE STRUCTURE removes the specified structure from the Central Structure Store (CSS), along with all references to the structure and all postings of the structure to workstations.
If the specified structure is closed, the subroutine removes the structure elements, structure identifier, and any references to the structure.
If the structure is the currently open structure, the structure identifier is retained and remains open, but the structure contents and any references to the structure are deleted.
C Input Parameter
struct_id
Specifies the structure to be deleted.
Execution
The effect of DELETE STRUCTURE when the specified structure is closed at the time the subroutine is called is different from the effect when structure identifier is the open structure. The two situations are described below. Deleting a Closed Structure If structure identifier is not the currently open structure, the DELETE STRUCTURE subroutine removes the specified structure from the PHIGS Central Structure Store. The subroutine deletes the structure identifier, structure contents, and all references to structure identifier contained in other structures.
If the currently open structure contains an element referencing structure identifier, the element in the open structure is deleted and the remaining elements renumbered. If the element pointer is pointing to the deleted element, the pointer is set to the preceding element. If the element pointer is pointing to an element following the deleted element, the element pointer is updated such that it still refers to the same element. Deleting the Open Structure If structure identifier is the currently open structure, the result of DELETE STRUCTURE is to replace the open structure with an empty, unreferenced structure. The effect is the same as calling the following subroutines in sequence:
• CLOSE STRUCTURE
• DELETE STRUCTURE
• OPEN STRUCTURE
ERRORS
002Ignoring function, function requires state (PHOP, ∗, ∗, ∗)
SEE ALSO
DELETE ALL STRUCTURES (3P)
DELETE STRUCTURE NETWORK (3P)
DELETE STRUCTURES FROM ARCHIVE (3P)
EMPTY STRUCTURE (3P)
September 02, 1992