final class CellQueue
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
CellQueue.CellQueueEntry |
Modifier and Type | Field and Description |
---|---|
private CellQueue.CellQueueEntry |
m_firstEntry |
private int |
m_iSize |
private CellQueue.CellQueueEntry |
m_lastEntry |
Constructor and Description |
---|
CellQueue()
Constructor for the cellqueue
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(Cell c)
Adds a cell to the cellqueue
|
boolean |
isEmpty()
returns if the queue contains an element
|
Cell |
removeElement()
returns the first element of the queue
|
int |
size()
Returns the number of Cells stored in the queue at the moment.
|
private CellQueue.CellQueueEntry m_firstEntry
private CellQueue.CellQueueEntry m_lastEntry
private int m_iSize
public void addElement(Cell c)
c
- Cellpublic Cell removeElement()
public int size()
public boolean isEmpty()
Copyright © 2023. All rights reserved.