Class Stack

Description

Stack实现类

Located in /ORG/Util/Stack.class.php (line 26)

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

Inherited Variables

Inherited from ArrayList

ArrayList::$_elements
Methods
Constructor __construct (line 38)

架构函数

  • access: public
Stack __construct ([array $values = array()])
  • array $values: 初始化数组元素

Redefinition of:
ArrayList::__construct()
架构函数
peek (line 53)

将堆栈的内部指针指向第一个单元

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

最后一个元素出栈

  • access: public
mixed pop ()

Redefinition of:
ArrayList::pop()
push (line 86)

元素进栈

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

Inherited Methods

Inherited From ArrayList

ArrayList::__construct()
ArrayList::add()
ArrayList::addAll()
ArrayList::asort()
ArrayList::clear()
ArrayList::contains()
ArrayList::get()
ArrayList::getIterator()
ArrayList::indexOf()
ArrayList::isEmpty()
ArrayList::ksort()
ArrayList::lastIndexOf()
ArrayList::natsort()
ArrayList::pop()
ArrayList::range()
ArrayList::remove()
ArrayList::removeRange()
ArrayList::rsort()
ArrayList::set()
ArrayList::size()
ArrayList::toArray()
ArrayList::toJson()
ArrayList::unique()
ArrayList::unshift()

Documentation generated on Thu, 27 Mar 2008 08:20:53 +0000 by 塞北的雪