<?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();
}
?>
|