EType - type of the elementprotected class MTBLevelsetFunctionPDE.SortedList<EType> extends Object
| Modifier and Type | Field and Description |
|---|---|
private MTBLevelsetFunctionPDE.SortedListElement<EType> |
head |
private int |
size |
private MTBLevelsetFunctionPDE.SortedListElement<EType> |
tail |
| Constructor and Description |
|---|
SortedList()
create empty SortetList
|
| Modifier and Type | Method and Description |
|---|---|
int |
getSize()
count number of elements
|
boolean |
offer(EType element,
double priority)
add an element to List
|
EType |
poll()
retrieve element with highest priority
|
private MTBLevelsetFunctionPDE.SortedListElement<EType> head
private MTBLevelsetFunctionPDE.SortedListElement<EType> tail
private int size
public int getSize()
public boolean offer(EType element, double priority)
element - element to addpriority - priority of this elementpublic EType poll()
Copyright © 2010–2025 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.