All Packages Class Hierarchy This Package Previous Next Index
Class com.micronova.util.IXQueue
java.lang.Object
|
+----com.micronova.util.IXVector
|
+----com.micronova.util.IXQueue
- public abstract class IXQueue
- extends IXVector
IXQueue implements element-type-independent queue. An IXQueue holds (length() - 1) elements without reallocation.
- Version:
- 1.0
-
_head
- Index of the element to be pulled next.
-
_tail
- Index of the element to be pushed next.
-
IXQueue()
-
-
_decrease(int)
- Decrease index modulo _length.
-
_expand()
- Doubles the size of the queue.
-
_increase(int)
- Increase index modulo _length.
-
isEmpty()
- Returns true if queue is empty.
-
isFull()
- Returns true if queue is full (i.e., contains (length() - 1) elements)
-
size()
- Returns number of elements in the queue.
_head
protected int _head
- Index of the element to be pulled next.
_tail
protected int _tail
- Index of the element to be pushed next.
IXQueue
public IXQueue()
_increase
protected final int _increase(int index)
- Increase index modulo _length.
_decrease
protected final int _decrease(int index)
- Decrease index modulo _length.
_expand
protected final void _expand()
- Doubles the size of the queue.
isEmpty
public final boolean isEmpty()
- Returns true if queue is empty.
isFull
public final boolean isFull()
- Returns true if queue is full (i.e., contains (length() - 1) elements)
size
public int size()
- Returns number of elements in the queue.
- Overrides:
- size in class IXVector
All Packages Class Hierarchy This Package Previous Next Index