PR# 3810 On TREE classes, have agent features that operate on nodes, not just contents
Problem Report Summary
Submitter:
Category: EiffelStudio
Priority: Medium
Date: 2004/06/30
Class: Feature Request
Severity: Serious
Number: 3810
Release: 5.5.0715
Confidential: No
Status: Open
Responsible:
Environment: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
Synopsis: On TREE classes, have agent features that operate on nodes, not just contents
Description
On TREE classes, I'd like have agent features that operate on the nodes, not just contents. For example, the signature of do_all for ARRAYED_TREE is do_all (an_agent: PROCEDURE [ANY, TUPLE [G]]) which gives me the item within each node, but there are situations where I'd like to iterate over a tree with an agent that can see that item in the context of the tree -- ie gain access to content in the parent, siblings or children. It would be nice to have an alternative do_all feature like so: do_all_item (an_agent: PROCEDURE [ANY, TUPLE [like Current]])
To Reproduce
Problem Report Interactions