Documentación GVHIDRA 3.1.5
Referencia de la Clase Stack
Diagrama de herencias de Stack
ArrayList Object

Métodos públicos

 Stack ($values=array())
 peek ()
 pop ()
 push ($value)

Descripción detallada

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.

Autor:
Arnold Cano
Versión:
Id:
Stack.php,v 1.1.1.1 2004-06-16 12:25:44 cvs Exp

Definición en la línea 10 del archivo Stack.php.


Documentación de las funciones miembro

peek ( )

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

public

Devuelve:
mixed

Definición en la línea 28 del archivo Stack.php.

        {
                return reset($this->toArray());
        }
pop ( )

Pop a value from the Stack.

public

Devuelve:
mixed

Definición en la línea 38 del archivo Stack.php.

        {
                return array_pop($this->toArray());
        }
push ( value)

Push a value into the Stack.

public

Parámetros:
mixed$value
Devuelve:
mixed

Definición en la línea 49 del archivo Stack.php.

        {
                $this->add($value);
                return $value;
        }
Stack ( values = array())

Create a Stack with the specified values.

public

Parámetros:
string$values

Definición en la línea 18 del archivo Stack.php.

        {
                ArrayList::ArrayList($values);
        }

La documentación para esta clase fue generada a partir del siguiente fichero: