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 Summary

    Modifier and Type
    Method
    Description
    get(int index)
     
    double
    getDouble(int index)
     
    int
    Returns the index from a name.
    int
    Returns the number of bound variables in this
  • Method Details

    • size

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

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

      Value get(int index)
    • getDouble

      double getDouble(int index)