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
-
Method Details
-
size
int size()Returns the number of bound variables in this -
getIndex
Returns the index from a name.- Throws:
NullPointerException
- is this name is not known to this context
-
get
-
getDouble
double getDouble(int index)
-