Interface ContextIndex

  • All Known Implementing Classes:
    AbstractArrayContext, ArrayContext, DoubleOnlyArrayContext

    public interface ContextIndex
    Indexed context lookup methods. Any context which implements these methods supports optimizations where map lookups are replaced by indexed lookups.
    Author:
    bratseth
    • Method Detail

      • size

        int size()
        Returns the number of bound variables in this
      • getIndex

        int getIndex​(java.lang.String name)
        Returns the index from a name.
        Throws:
        java.lang.NullPointerException - is this name is not known to this context
      • get

        Value get​(int index)
      • getDouble

        double getDouble​(int index)