Class iterator
An object of class iterator represents an iterator over a one-to-many association. An iterator has two parts:
— The iterator set, which is an ordered set of target objects of the one-to-many association
— The iterator position, which is a reference to one of the elements of the iterator set, or to no object if the iterator position has advanced past the last element of the iterator set
A VHPI program creates an iterator by calling the function vhpi_iterator (see 21.23).
If a VHPI program creates an iterator over a one-to-many association and subsequently causes additional objects to become target objects of the association, this standard does not specify whether those additional objects become elements of the iterator set of the iterator.
If a dynamic object that is an element of an iterator set of an iterator ceases to exist, the object ceases to be an element of the iterator set. If the iterator position of the iterator refers to the object at the time the object ceases to exist, the iterator position is updated to refer to the subsequent object, if any, or to no object otherwise.
Application context: library information model, design hierarchy information model.
General Info |
|
Name | iterator |
Owner | stdMeta |
Base Classifier | base |
Visibility | public |
Is Active | false |
Is Abstract | false |
Inner Elements |
Name | Type |
unnamed | Generalization |
unnamed | InstanceSpecification |