Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327386 - [library] Make allInstances an iterator
Summary: [library] Make allInstances an iterator
Status: RESOLVED WONTFIX
Alias: None
Product: OCL
Classification: Modeling
Component: Core (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Windows Vista
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: OCL Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-09 06:35 EDT by Ed Willink CLA
Modified: 2021-02-27 03:50 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2010-10-09 06:35:48 EDT
The IterationTemplate allows early temination through setDone().

If allInstances() used this framework, the total model traversal could be terminated early.

NB. The partial traversal must be cached so that a further query completes it if necessary.
Comment 1 Ed Willink CLA 2021-02-27 03:50:10 EST
The new LazyEcoreModelManager does a full model traversal once cachiing all possible subsequent accesses. An early termination does not make sense.