From: SourceForge.net <no...@so...> - 2010-09-16 16:08:52
|
Feature Requests item #1628466, was opened at 2007-01-05 00:29 Message generated for change (Settings changed) made by miesfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684733&aid=1628466&group_id=119701 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Classes Group: v4.0 >Status: Closed Resolution: Accepted Priority: 5 Private: No Submitted By: Jon Wolfers (sahananda) Assigned to: Nobody/Anonymous (nobody) Summary: CircularQueue pushUnique method Initial Comment: Hi Could we have pushUnique & queueUnique methods for the CircularQueue Class please. They would first check to see if the item was already in the queue and remove it before pushing or queueing the item. This is the sort of behaviour one would expect from a recent files list. If you revisit a file you expect it to appear as the last file visited, but any previous reference to it would be removed from the list. This could equally well be achieved by a 'unique' parameter to the push & queue methods or a new UniqueCircularQueue class if those methods were felt to be more in keeping with the look & feel of the language. Thanks, Jon PS: Sorry if this appears twice - 1st attempt disappeared. ---------------------------------------------------------------------- Comment By: Mark Miesfeld (miesfeld) Date: 2010-09-16 09:08 Message: This request for a feature enhancement has been included in a prior release so the tracker item is being closed. ---------------------------------------------------------------------- Comment By: Jon Wolfers (sahananda) Date: 2008-08-10 01:25 Message: Logged In: YES user_id=667060 Originator: YES Docs ammended in Rev 2925 ---------------------------------------------------------------------- Comment By: Jon Wolfers (sahananda) Date: 2008-08-09 23:11 Message: Logged In: YES user_id=667060 Originator: YES Code committed in revision 2923 allows the use of a second Parameter 'Unique' (or defaults to 'Normal'). If unique is present then if the item already exists on the circularQueue it is removed before the Push or Queue operation is performed. Documentation to follow shortly ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684733&aid=1628466&group_id=119701 |