Class Stack

Description

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.

  • author: Arnold Cano
  • version: $Id: Stack.php,v 1.1.1.1.24.1 2011/10/04 11:19:40 afelixf Exp $

Located in /phrame/util/Stack.php (line 10)

Object
   |
   --ArrayList
      |
      --Stack
Method Summary
Stack Stack ([string $values = array()])
mixed peek ()
mixed pop ()
mixed push (mixed $value)
Variables

Inherited Variables

Inherited from ArrayList

ArrayList::$_elements
Methods
Constructor Stack (line 18)

Create a Stack with the specified values.

  • access: public
Stack Stack ([string $values = array()])
  • string $values
peek (line 28)

Peek at the value from the top of the Stack without removing it.

  • access: public
mixed peek ()
pop (line 38)

Pop a value from the Stack.

  • access: public
mixed pop ()
push (line 49)

Push a value into the Stack.

  • access: public
mixed push (mixed $value)
  • mixed $value

Inherited Methods

Inherited From ArrayList

ArrayList::ArrayList()
ArrayList::add()
ArrayList::addAll()
ArrayList::clear()
ArrayList::contains()
ArrayList::get()
ArrayList::indexOf()
ArrayList::isEmpty()
ArrayList::lastIndexOf()
ArrayList::listIterator()
ArrayList::remove()
ArrayList::removeRange()
ArrayList::set()
ArrayList::size()
ArrayList::toArray()

Inherited From Object

Object::equals()
Object::toString()

Documentation generated on Wed, 05 Oct 2011 10:36:46 +0200 by phpDocumentor 1.4.1