Class OpMapVector

java.lang.Object
org.loboevolution.apache.xpath.compiler.OpMapVector

public class OpMapVector extends Object
Like IntVector, but used only for the OpMap array. Length of array is kept in the m_lengthPos position of the array. Only the required methods are in included here.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final int
    Size of blocks to allocate
    protected int
    Position where size of array is kept
    protected int[]
    Array of ints
    protected int
    Size of array
  • Constructor Summary

    Constructors
    Constructor
    Description
    OpMapVector(int blocksize, int increaseSize, int lengthPos)
    Construct a OpMapVector, using the given block size.
  • Method Summary

    Modifier and Type
    Method
    Description
    final int
    elementAt(int i)
    Get the nth element.
    final void
    setElementAt(int value, int index)
    Sets the component at the specified index of this vector to be the specified object.
    final void
    setToSize(int size)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • m_blocksize

      protected final int m_blocksize
      Size of blocks to allocate
    • m_map

      protected int[] m_map
      Array of ints
    • m_lengthPos

      protected int m_lengthPos
      Position where size of array is kept
    • m_mapSize

      protected int m_mapSize
      Size of array
  • Constructor Details

    • OpMapVector

      public OpMapVector(int blocksize, int increaseSize, int lengthPos)
      Construct a OpMapVector, using the given block size.
      Parameters:
      blocksize - Size of block to allocate
  • Method Details

    • elementAt

      public final int elementAt(int i)
      Get the nth element.
      Parameters:
      i - index of object to get
      Returns:
      object at given index
    • setElementAt

      public final void setElementAt(int value, 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.

      Parameters:
      value - object to set
      index - Index of where to set the object
    • setToSize

      public final void setToSize(int size)