Apply a function once to each unit instance of the specified unit classes.
Arguments and values
|function||A function designator specifying a function object of one argument|
|unit-classes-specifier||An extended unit-classes specification (see below)|
|| atomic-unit-class |
||unit-class | unit-class-name|
+ subclasses specifier is equivalent to
The specified function is applied once to each unit instance of the specified unit classes, whether or not the instances reside on any space instances.
Delete all unit instances of the unit class
(map-instances-of-class #'delete-instance 'hyp)Delete all unit instances of the unit class
hypand instances of subclasses of
(map-instances-of-class #'delete-instance '(hyp :plus-subclasses))or simply:
(map-instances-of-class #'delete-instance '(hyp +))
The consequences are unspecified if an attempt is made to add or delete a unit instance while
(map-instances-of-class #'delete-space-instance '(standard-space-instance :plus-subclasses))because deletion of a space instance with children automatically deletes those child space instances. The function
The equivalent of
(map-instances-of-class 'print arg)
:pic [unit-classes-specifier]If arg is omitted,
tis used as the default.
The GBBopen Project