Class IStateDoubleVector

  • Direct Known Subclasses:

    public abstract class IStateDoubleVector
    extends Object
    Describes an search vector with states (describing some history of the data structure).
    • Field Detail


        public static final int MIN_CAPACITY
        Minimal capacity of a vector
        See Also:
        Constant Field Values
      • elementData

        protected double[] elementData
        Contains the elements of the vector.
      • size

        protected IStateInt size
        A backtrackable search with the size of the vector.
      • environment

        protected final IEnvironment environment
        The current environment.
    • Constructor Detail

      • IStateDoubleVector

        protected IStateDoubleVector​(IEnvironment env,
                                     int initialSize,
                                     double initialValue)
      • IStateDoubleVector

        protected IStateDoubleVector​(IEnvironment env,
                                     double[] entries)
    • Method Detail

      • get

        public final double get​(int index)
        Returns the indexth element of the vector.
      • quickGet

        public final double quickGet​(int index)
        return the indexth element of the vector without an bound check.
        index - index
        the element
      • rangeCheck

        protected boolean rangeCheck​(int index)
      • quickSet

        public abstract double quickSet​(int index,
                                        double val)
        Unsafe setter => don't do bound verification
        index - the index of the replaced value
        val - the new value
        the old value