|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.hankcs.hanlp.seg.NShort.Path.CQueue
public class CQueue
一个维护了上次访问位置的优先级队列(最小堆)
| 构造方法摘要 | |
|---|---|
CQueue()
|
|
| 方法摘要 | |
|---|---|
boolean |
CanGetNext()
是否仍然有下一个元素可供读取 |
void |
clear()
清除所有元素 |
QueueElement |
deQueue()
从队列中取出前面的一个元素 |
void |
enQueue(QueueElement newElement)
将QueueElement根据eWeight由小到大的顺序插入队列 |
QueueElement |
GetFirst()
读取第一个元素,但不执行DeQueue操作 |
QueueElement |
GetNext()
读取上次读取后的下一个元素,不执行DeQueue操作 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public CQueue()
| 方法详细信息 |
|---|
public void enQueue(QueueElement newElement)
newElement - public QueueElement deQueue()
public QueueElement GetFirst()
public QueueElement GetNext()
public boolean CanGetNext()
public void clear()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||