Login   Register  
PHP Classes
elePHPant
Icontem

List: Manage double-linked lists of sorted elements

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-09-04 (8 years ago) RSS 2.0 feedNot enough user ratingsTotal: 650 This week: 1All time: 4,452 This week: 1,478Up
Version License Categories  
sl-sortedlist 1.0Freely DistributableData types
Description Author  

This package can be used to manage double-linked listed of elements that are automatically sorted.

There is a class for managing the lists of elements of any type or class, and another for managing the list nodes of elements.

The list class provides means to add new list nodes in a position determined by the sorting criteria.

The sorting criteria can be customized passing the name of a callback function that performs the comparision between the elements of the list.

The code and the comments are in Spanish.

In Spanish:

Lista simplemente enlazada que mantiene el orden de los elementos que se le insertan.

Puede almacenar cualquier tipo de dato, incluso Objetos y arrays.

Para determinar el orden qeu se debe mantener utiliza una función definida por el usuario que se le indica a la clase al instanciarla.

Picture of Matías montes
Name: Matías montes <contact>
Classes: 3 packages by
Country: Argentina Argentina
Age: 30
All time rank: 104313 in Argentina Argentina
Week rank: 1120 Down11 in Argentina Argentina Up

  Files folder image Files  
File Role Description
Plain text file class.Lista.php Class Main class file
Plain text file class.Nodo.php Class Node class. Used by main class
Accessible without login Plain text file Ejemplo1.php Example Simple example using Integers
Accessible without login Plain text file Ejemplo2.php Example Example using objects and chained lists

 Version Control Unique User Downloads Download Rankings  
 0%Total:650All time:4,452
 This week:1This week:1,478Up