Class Stack

Object
   |
   --ArrayList
      |
      --Stack

Classes extended from Stack:

Located in File: Program_Root/util/Stack.php


Stack of LIFO objects that can be administered and searched, while hiding
 the internal implementation. This is an implementation of the Stack class in
 the Java language.

Class Variable Summary

Inherited Class Variable Summary
Inherited From Class ArrayList
Variable Default Value Description
$_elements ->array()<-

Inherited Method Summary
Inherited From Class ArrayList
Function Description
constructor ArrayList ( [$elements = array()] )
add ( $element )
addAll ( $list )
clear ( )
contains ( $element )
get ( $index )
indexOf ( $element )
isEmpty ( )
lastIndexOf ( $element )
listIterator ( )
remove ( $index )
removeRange ( $start, $end )
set ( $index, $element )
size ( )
toArray ( )
Inherited From Class Object
Function Description
clone ( )
equals ( [$object = ] )
toString ( )

Method Summary
void constructor Stack ( [$values = array()] )
mixed peek ( )
mixed pop ( )
mixed push ( $value )
Variable Detail

Method Detail

constructor Stack

void constructor Stack ( [$values = array()] )

Create a Stack with the specified values.
Function Parameters:
- string $values:
Function Info:
Access - public

peek

mixed peek ( )

Peek at the value from the top of the Stack without removing it.
Function Parameters:
Function Info:
Access - public

pop

mixed pop ( )

Pop a value from the Stack.
Function Parameters:
Function Info:
Access - public

push

mixed push ( $value )

Push a value into the Stack.
Function Parameters:
- mixed $value:
Function Info:
Access - public