PHP Classes
elePHPant
Icontem

File: list.abstr.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.abstr.php  >  Download  
File: list.abstr.php
Role: Auxiliary script
Content type: text/plain
Description: Abstract List Class
Class: ps stack
Manage a stack like in Postscript
Author: By
Last change: removed superfluous include
Date: 8 years ago
Size: 847 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 abstraction for list like structures like stacks,
      queues, bags, sets, etc. */

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

?>