![]() |
|
|
|
Linked List
Project Home • Forums • Wiki • Known Issues • Contact Project
Author: Chuck Savage (All RIAForge projects by this author) Description:
Doubly linked list, can be used for Queue's since members can be added and removed to both the front and back.
With InsertAt() values can be added anywhere, though it will be slower. Without a compare function currently, finding the right place in the list to insert is up to you the developer. Check out the WIKI link above for the Documentation Revisions: Version 2.1 adds an InsertAt(value, iterator) to LinkedList.cfc Version 2.0 - Version 1 was a single file to do everything. Its now opened up to include: • Link.cfc - The hidden link... Developers don't have direct access to it unless you modify either... • Iterator.cfc - Loop easily through the list using the iterator • LinkedList.cfc - Add, Pop, etc items from a list. History: Due to a contest at Ray Camden's blog, I accepted the challenge to come up with a method to keep ordered lists of various lengths, and that each needed to be rotated one at a time. I've been looking for a way to release this code appropriately, and I believe RIAForge is the way. The code is entirely ColdFusion, though through the process I did learn of the underlying Java classes to do the same. Still, this code is ColdFusion through and through, and easy to read (I hope!) The code for the LinkedSeries.cfc is included in the SVN.
Last Update:
Removed demo link since that website is down.
Requirements:
ColdFusion 8 (probably just fine on 9, never used 7,6,5 etc so not sure)
Issue Tracker: There are no issues for this project. To enter issues for this (or any other) project, you must be logged in. Subversion Access: You may access this project's Subversion repository with your client here: http://svn.riaforge.org/LinkedList. To view files and changelists associated with this repository, go here: http://LinkedList.riaforge.org/index.cfm?event=page.svnbrowse. You may download the latest set of files from Subversion as a zip file. Anonymous users have read access to the repository while the administrator has write access. This project is sharing its code via Subversion. Subversion is an open source source control method. You may find more information about Subversion here: http://subversion.tigris.org/ |
Adobe and the Adobe product names are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries.