Login   Register  
PHP Classes
elePHPant
Icontem

File: list.inter.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Asher Wolfstein  >  ps stack  >  list.inter.php  >  Download  
File: list.inter.php
Role: Auxiliary script
Content type: text/plain
Description: List Interface
Class: ps stack
Manage a stack like in Postscript
Author: By
Last change: PHP 5 in Desc. not necessary
Date: 8 years ago
Size: 732 bytes
 

Contents

Class file image Download
<?php

/* Basic List Interface
 * By Asher Holley (http://www.wolfoxinc.com/opensource/)
 * Released under the GNU General Public License ( http://www.opensource.org/licenses/gpl-license.html )
 * Copyright  2006 Asher Holley
 *
 * This contains a useful interface for list like structures like stacks,
      queues, bags, sets, etc. */

interface List_Inter {
    public function 
top();
    public function &
top_ref();
    public function 
push();
    public function 
push_ref( &$a );
    public function 
pop();
    public function &
pop_ref();
    public function 
index$i );
    public function &
index_ref$i );
    public function 
count();
    public function 
is_empty();
    public function 
clear();
    public function 
get_list();
}

?>