phpDocumentor collections
[ class tree: collections ] [ index: collections ] [ all elements ]

Class: WindStack

Source Location: /collections/WindStack.php

Class WindStack

Class Overview

Implements interfaces:

  • IteratorAggregate (internal interface)
  • Countable (internal interface)

堆栈操作,先进后出

Located in /collections/WindStack.php [line 10]



		
				Author(s):
		
		
		
Information Tags:
Version:  $Id: WindStack.php 2973 2011-10-15 19:22:48Z yishuo $
Copyright:  ©2003-2103 phpwind.com
License:  http://www.windframework.com

Methods

[ Top ]
Method Summary
void   clear()   清空队列
boolean   contain()   确定某元素是否在 Stack中。
void   count()  
string   getCount()   取得堆栈个数
void   getIterator()   取得堆栈的迭代器
boolean   mergeFromArray()   将数组中的值合并到当前tack队列
boolean   mergeFromStack()   将WindStack堆栈集合合并到当前Stack队列
mixed   peek()   返回位于 Stack底部的对象但不将其移除。
mixed   pop()   移除并返回位于 Stack 底部的对象。
number   push()   将元素插入 Stack 的底部。
WindStack   __clone()   创建 stack的浅表副本。

[ Top ]
Methods
clear  [line 66]

  void clear( )

清空队列


API Tags:
Access:  public


[ Top ]
contain  [line 49]

  boolean contain( mixed $value  )

确定某元素是否在 Stack中。

Parameters:
mixed   $value: 

API Tags:
Access:  public


[ Top ]
count  [line 108]

  void count( )


API Tags:
Access:  public


Implementation of:
Countable::count

[ Top ]
getCount  [line 100]

  string getCount( )

取得堆栈个数


API Tags:
Access:  public


[ Top ]
getIterator  [line 115]

  void getIterator( )

取得堆栈的迭代器


API Tags:
Access:  public


Implementation of:
IteratorAggregate::getIterator

[ Top ]
mergeFromArray  [line 77]

  boolean mergeFromArray( array $array  )

将数组中的值合并到当前tack队列

Parameters:
array   $array:  要合并的数组

API Tags:
Access:  public


[ Top ]
mergeFromStack  [line 89]

  boolean mergeFromStack( WindStack $stack, WindStack $list  )

将WindStack堆栈集合合并到当前Stack队列

Parameters:
WindStack   $list:  要合并的WindStack集合
WindStack   $stack: 

API Tags:
Access:  public


[ Top ]
peek  [line 37]

  mixed peek( )

返回位于 Stack底部的对象但不将其移除。


API Tags:
Access:  public


[ Top ]
pop  [line 25]

  mixed pop( )

移除并返回位于 Stack 底部的对象。


API Tags:
Access:  public


[ Top ]
push  [line 58]

  number push( mixed $value  )

将元素插入 Stack 的底部。

Parameters:
mixed   $value: 

API Tags:
Access:  public


[ Top ]
__clone  [line 123]

  WindStack __clone( )

创建 stack的浅表副本。


API Tags:
Access:  public


[ Top ]

Documentation generated on Fri, 30 Mar 2012 11:43:41 +0800 by phpDocumentor 1.4.4