Hi,
AFAIK
in Delphi it's a matter of roll-your-own or use someone else's :) The TList can
be used like a queue, stack etc. but it's nicer to make a class for the specific
functionality.
Iterators using interfaces are a good way to go. Check out the article
(middle of page) at: http://www.madrigal.com.au/papers/solidcode/page3.htm.
This
should get you started. I think iterators are really nice and it's hard to
go back to the 'usual' way of iterating over a list in Delphi
:)
HTH
Chris
|
- [DUG]: iterators, deques etc Tracey Maule
- RE: [DUG]: iterators, deques etc Andreas Toth
- RE: [DUG]: iterators, deques etc Paul Heinz
- Re: [DUG]: iterators, deques etc Tracey Maule
- RE: [DUG]: iterators, deques etc Andreas Toth
- Re: [DUG]: iterators, deques etc matthew
- RE: [DUG]: iterators, deques etc Chris Milham
- RE: [DUG]: iterators, deques etc Myles Penlington
- RE: [DUG]: iterators, deques etc Peter Speden