Modifier and Type | Field and Description |
---|---|
private int | m_blocksize
Size of blocks to allocate. |
protected int | m_firstFree
Number of nodes in this NodeVector. |
private int[] | m_map
Array of nodes this points to. |
private int | m_mapSize
Size of the array this points to. |
pack-priv static final long |
Access | Constructor and Description |
---|---|
public | |
public | NodeVector(int
Size of blocks to allocate blocksize)Construct a NodeVector, using the given block size. |
Modifier and Type | Method and Description |
---|---|
public void | |
public void | |
public Object | |
public boolean | Returns: True if the given node was found.Node to look for s)Tell if the table contains the given node. |
public int | |
public int | Returns: the index of the first occurrence of the object argument in this vector at position index or later in the vector; returns -1 if the object is not found.Node to look for elem, int Index of where to start the search index)Searches for the first occurence of the given argument, beginning the search at index, and testing for equality using the equals method. |
public int | Returns: the index of the first occurrence of the object argument in this vector at position index or later in the vector; returns -1 if the object is not found.Node to look for elem)Searches for the first occurence of the given argument, beginning the search at index, and testing for equality using the equals method. |
public void | insertElementAt(int
Node to insert value, int Position where to insert at)Inserts the specified node in this vector at the specified index. |
public void | |
public final int | Returns: Node at the top of the stack or null if stack is empty.Return the node at the top of the stack without popping the stack. |
public final int | Returns: Node at the tail of the vectorReturn the node at the tail of the vector without popping Special purpose method for TransformerImpl, pushElemTemplateElement. |
public final int | Returns: Node one away from the tailReturn the node one position from the tail without popping. |
public final int | Returns: the node at the tail of the vectorPop a node from the tail of the vector and return the result. |
public final int | Returns: The top of the stack after it's been poppedPop a node from the tail of the vector and return the top of the stack after the pop. |
public final void | |
public final void | |
public final void | |
public final void | pushPair(int
First node to add to vector v1, int Second node to add to vector v2)Push a pair of nodes into the stack. |
public void | |
public void | |
public boolean | Returns: True if the node was successfully removedNode to remove from the list s)Removes the first occurrence of the argument from this vector. |
public void | |
public void | setElementAt(int
Node to set node, int Index of where to set the node index)Sets the component at the specified index of this vector to be the specified object. |
public final void | |
public final void | |
public int | |
public void | sort(int[]
The array to be sorted. a, int The low index. lo0, int The high index. hi0)Sort an array using a quicksort algorithm. |
public void |
m_blocksize | back to summary |
---|---|
private int m_blocksize Size of blocks to allocate. |
m_firstFree | back to summary |
---|---|
protected int m_firstFree Number of nodes in this NodeVector. |
m_map | back to summary |
---|---|
private int[] m_map Array of nodes this points to. |
m_mapSize | back to summary |
---|---|
private int m_mapSize Size of the array this points to. |
serialVersionUID | back to summary |
---|---|
pack-priv static final long serialVersionUID |
NodeVector | back to summary |
---|---|
public NodeVector() Default constructor. |
NodeVector | back to summary |
---|---|
public NodeVector(int blocksize) Construct a NodeVector, using the given block size.
|
addElement | back to summary |
---|---|
public void addElement(int value) Append a Node onto the vector.
|
appendNodes | back to summary |
---|---|
public void appendNodes(NodeVector nodes) Append the nodes to the list.
|
clone | back to summary |
---|---|
public Object clone() throws CloneNotSupportedException Overrides java. Get a cloned LocPathIterator.
|
contains | back to summary |
---|---|
public boolean contains(int s) Tell if the table contains the given node.
|
elementAt | back to summary |
---|---|
public int elementAt(int i) Get the nth element.
|
indexOf | back to summary |
---|---|
public int indexOf(int elem, int index) Searches for the first occurence of the given argument, beginning the search at index, and testing for equality using the equals method.
|
indexOf | back to summary |
---|---|
public int indexOf(int elem) Searches for the first occurence of the given argument, beginning the search at index, and testing for equality using the equals method.
|
insertElementAt | back to summary |
---|---|
public void insertElementAt(int value, int at) Inserts the specified node in this vector at the specified index. Each component in this vector with an index greater or equal to the specified index is shifted upward to have an index one greater than the value it had previously.
|
insertInOrder | back to summary |
---|---|
public void insertInOrder(int value) Insert a node in order in the list.
|
peepOrNull | back to summary |
---|---|
public final int peepOrNull() Return the node at the top of the stack without popping the stack. Special purpose method for TransformerImpl, pushElemTemplateElement. Performance critical.
|
peepTail | back to summary |
---|---|
public final int peepTail() Return the node at the tail of the vector without popping Special purpose method for TransformerImpl, pushElemTemplateElement. Performance critical.
|
peepTailSub1 | back to summary |
---|---|
public final int peepTailSub1() Return the node one position from the tail without popping. Special purpose method for TransformerImpl, pushElemTemplateElement. Performance critical.
|
pop | back to summary |
---|---|
public final int pop() Pop a node from the tail of the vector and return the result.
|
popAndTop | back to summary |
---|---|
public final int popAndTop() Pop a node from the tail of the vector and return the top of the stack after the pop.
|
popPair | back to summary |
---|---|
public final void popPair() Pop a pair of nodes from the tail of the stack. Special purpose method for TransformerImpl, pushElemTemplateElement. Performance critical. |
popQuick | back to summary |
---|---|
public final void popQuick() Pop a node from the tail of the vector. |
push | back to summary |
---|---|
public final void push(int value) Append a Node onto the vector.
|
pushPair | back to summary |
---|---|
public final void pushPair(int v1, int v2) Push a pair of nodes into the stack. Special purpose method for TransformerImpl, pushElemTemplateElement. Performance critical.
|
removeAllElements | back to summary |
---|---|
public void removeAllElements() Inserts the specified node in this vector at the specified index. Each component in this vector with an index greater or equal to the specified index is shifted upward to have an index one greater than the value it had previously. |
RemoveAllNoClear | back to summary |
---|---|
public void RemoveAllNoClear() Set the length to zero, but don't clear the array. |
removeElement | back to summary |
---|---|
public boolean removeElement(int s) Removes the first occurrence of the argument from this vector. If the object is found in this vector, each component in the vector with an index greater or equal to the object's index is shifted downward to have an index one smaller than the value it had previously.
|
removeElementAt | back to summary |
---|---|
public void removeElementAt(int i) Deletes the component at the specified index. Each component in this vector with an index greater or equal to the specified index is shifted downward to have an index one smaller than the value it had previously.
|
setElementAt | back to summary |
---|---|
public void setElementAt(int node, int index) Sets the component at the specified index of this vector to be the specified object. The previous component at that position is discarded. The index must be a value greater than or equal to 0 and less than the current size of the vector.
|
setTail | back to summary |
---|---|
public final void setTail(int n) Set the tail of the stack to the given node. Special purpose method for TransformerImpl, pushElemTemplateElement. Performance critical.
|
setTailSub1 | back to summary |
---|---|
public final void setTailSub1(int n) Set the given node one position from the tail. Special purpose method for TransformerImpl, pushElemTemplateElement. Performance critical.
|
size | back to summary |
---|---|
public int size() Get the length of the list.
|
sort | back to summary |
---|---|
public void sort(int[] a, int lo0, int hi0) throws Exception Sort an array using a quicksort algorithm.
|
sort | back to summary |
---|---|
public void sort() throws Exception Sort an array using a quicksort algorithm. |