Iterate over all unit instances of the specified unit classes.
Arguments and values
|var||A variable symbol|
|unit-classes-specifier||An extended unit-classes specification (see below)|
|declaration||A declare expression (not evaluated)|
|tag|| A |
|| atomic-unit-class |
||unit-class | unit-class-name|
+ subclasses specifier is equivalent to
The iteration over the unit instances of the specified unit classes is performed once for each unit instance, whether or not the instances reside on any space instances.
Delete all unit instances of the unit class
(do-instances-of-class (instance 'hyp) (delete-instance instance))Delete all unit instances of the unit class
hypand instances of subclasses of
(do-instances-of-class (instance '(hyp :plus-subclasses)) (delete-instance instance))or simply:
(do-instances-of-class (instance '(hyp +)) (delete-instance instance))
The consequences are unspecified if an attempt is made to add or delete a unit instance while
(do-instances-of-class (space-instance '(standard-space-instance :plus-subclasses)) (delete-space-instance space-instance))because deletion of a space instance with children automatically deletes those child space instances. The function
The equivalent of
(do-instances-of-class (instance arg)
t is assumed.
The GBBopen Project